One Star

Errors when calling a JD Edwards web service

Hi,
I'm new to Talend and hoping someone can help me with an issue I'm having.  I'm receiving errors when calling a JDE web service using either the tWebServiceInput or tSOAP component...receiving different error messages for each.  I'm able to call the web service using SoapUI and Pentaho.  I'm using TOS 6.2.1.  Thanks
tWebServiceInput error:
Exception in component tWebServiceInput_1
AxisFault
 faultCode: {}InvalidSecurity
 faultSubcode:
 faultString: Error on verifying message against security policy Error code:1000
 faultActor:
 faultNode:
 faultDetail:
                  {}stackTrace:Error on verifying message against security policy Error code:1000
                  at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
                  at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
                  at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
                  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1783)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2970)

tSOAP error:
Aug 18, 2016 9:37:13 AM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0009: Message send failed
Exception in component tSOAP_1
com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
                  at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:191)
                  at org.talend.soap.SOAPUtil.extractContentAsDocument(SOAPUtil.java:234)
                  at miketest.getaddressbookserver_soap_0_1.GetAddressBookServer_Soap.tFileInputXML_1Process(GetAddressBookServer_Soap.java:844)
                  at miketest.getaddressbookserver_soap_0_1.GetAddressBookServer_Soap.runJobInTOS(GetAddressBookServer_Soap.java:1203)
                  at miketest.getaddressbookserver_soap_0_1.GetAddressBookServer_Soap.main(GetAddressBookServer_Soap.java:1050)
Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
                  at java.security.AccessController.doPrivileged(Native Method)
                  at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)
                  ... 4 more
Here's the WSDL:
<definitions xmlns:wssutil="" xmlns:wsu="" xmlns:wsp=""xmlns:wsp1_2="" xmlns:wsam=""xmlns:soap="" xmlns:tns="" xmlns:xsd=""xmlns="" targetNamespace="" name="AddressBookManagerService">
<wsp:UsingPolicy wssutil:Required="true"/>
<wsp1_2Smiley Tongueolicy wssutil:Id="bssvpolicy">
<ns1:TransportBinding xmlns:ns1="">
<wsp1_2Smiley Tongueolicy>
<ns1:TransportToken>
<wsp1_2Smiley Tongueolicy>
<ns1:HttpsToken/>
</wsp1_2Smiley Tongueolicy>
</ns1:TransportToken>
<ns1:AlgorithmSuite>
<wsp1_2Smiley Tongueolicy>
<ns1:Basic256/>
</wsp1_2Smiley Tongueolicy>
</ns1:AlgorithmSuite>
<ns1:Layout>
<wsp1_2Smiley Tongueolicy>
<ns1:Lax/>
</wsp1_2Smiley Tongueolicy>
</ns1:Layout>
</wsp1_2Smiley Tongueolicy>
</ns1:TransportBinding>
<ns2Smiley FrustratedupportingTokens xmlns:ns2="">
<wsp1_2Smiley Tongueolicy>
<ns2:UsernameToken ns2:IncludeToken="">
<wsp1_2Smiley Tongueolicy>
<ns2:WssUsernameToken10/>
</wsp1_2Smiley Tongueolicy>
</ns2:UsernameToken>
</wsp1_2Smiley Tongueolicy>
</ns2Smiley FrustratedupportingTokens>
</wsp1_2Smiley Tongueolicy>
<types>
<xsd:schema>
<xsd:import namespace="" schemaLocation=""/>
</xsd:schema>
</types>
<message name="getContactV2">
<part name="getContactV2" element="tns:getContactV2"/>
</message>
<message name="getContactV2Response">
<part name="getContactV2Response" element="tns:getContactV2Response"/>
</message>
<message name="BusinessServiceException">
<part name="fault" element="tns:BusinessServiceException"/>
</message>
<message name="getContact">
<part name="getContact" element="tns:getContact"/>
</message>
<message name="getContactResponse">
<part name="getContactResponse" element="tns:getContactResponse"/>
</message>
<message name="processAddressBookV2">
<part name="processAddressBookV2" element="tnsSmiley TonguerocessAddressBookV2"/>
</message>
<message name="processAddressBookV2Response">
<part name="processAddressBookV2Response" element="tnsSmiley TonguerocessAddressBookV2Response"/>
</message>
<message name="processContact">
<part name="processContact" element="tnsSmiley TonguerocessContact"/>
</message>
<message name="processContactResponse">
<part name="processContactResponse" element="tnsSmiley TonguerocessContactResponse"/>
</message>
<message name="processAddressBook">
<part name="processAddressBook" element="tnsSmiley TonguerocessAddressBook"/>
</message>
<message name="processAddressBookResponse">
<part name="processAddressBookResponse" element="tnsSmiley TonguerocessAddressBookResponse"/>
</message>
<message name="getAddressBook">
<part name="getAddressBook" element="tns:getAddressBook"/>
</message>
<message name="getAddressBookResponse">
<part name="getAddressBookResponse" element="tns:getAddressBookResponse"/>
</message>
<message name="getAddressBookV2">
<part name="getAddressBookV2" element="tns:getAddressBookV2"/>
</message>
<message name="getAddressBookV2Response">
<part name="getAddressBookV2Response" element="tns:getAddressBookV2Response"/>
</message>
<message name="lookupAddressBook">
<part name="lookupAddressBook" element="tns:lookupAddressBook"/>
</message>
<message name="lookupAddressBookResponse">
<part name="lookupAddressBookResponse" element="tns:lookupAddressBookResponse"/>
</message>
<portType name="AddressBookManager">
<operation name="getContactV2">
<input wsam:Action="" message="tns:getContactV2"/>
<output wsam:Action="" message="tns:getContactV2Response"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException"wsam:Action=""/>
</operation>
<operation name="getContact">
<input wsam:Action="" message="tns:getContact"/>
<output wsam:Action="" message="tns:getContactResponse"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException"wsam:Action=""/>
</operation>
<operation name="processAddressBookV2">
<input wsam:Action="" message="tnsSmiley TonguerocessAddressBookV2"/>
<output wsam:Action="" message="tnsSmiley TonguerocessAddressBookV2Response"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException"wsam:Action=""/>
</operation>
<operation name="processContact">
<input wsam:Action="" message="tnsSmiley TonguerocessContact"/>
<output wsam:Action="" message="tnsSmiley TonguerocessContactResponse"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException"wsam:Action=""/>
</operation>
<operation name="processAddressBook">
<input wsam:Action="" message="tnsSmiley TonguerocessAddressBook"/>
<output wsam:Action="" message="tnsSmiley TonguerocessAddressBookResponse"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException"wsam:Action=""/>
</operation>
<operation name="getAddressBook">
<input wsam:Action="" message="tns:getAddressBook"/>
<output wsam:Action="" message="tns:getAddressBookResponse"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException"wsam:Action=""/>
</operation>
<operation name="getAddressBookV2">
<input wsam:Action="" message="tns:getAddressBookV2"/>
<output wsam:Action="" message="tns:getAddressBookV2Response"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException"wsam:Action=""/>
</operation>
<operation name="lookupAddressBook">
<input wsam:Action="" message="tns:lookupAddressBook"/>
<output wsam:Action="" message="tns:lookupAddressBookResponse"/>
<fault message="tns:BusinessServiceException" name="BusinessServiceException"wsam:Action=""/>
</operation>
</portType>
<binding name="AddressBookManagerPortBinding" type="tns:AddressBookManager">
<wspSmiley TongueolicyReference URI="#bssvpolicy"/>
<soap:binding transport="" style="document"/>
<operation name="getContactV2">
<soapSmiley Surprisedperation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
<operation name="getContact">
<soapSmiley Surprisedperation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
<operation name="processAddressBookV2">
<soapSmiley Surprisedperation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
<operation name="processContact">
<soapSmiley Surprisedperation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
<operation name="processAddressBook">
<soapSmiley Surprisedperation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
<operation name="getAddressBook">
<soapSmiley Surprisedperation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
<operation name="getAddressBookV2">
<soapSmiley Surprisedperation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
<operation name="lookupAddressBook">
<soapSmiley Surprisedperation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="BusinessServiceException">
<soap:fault name="BusinessServiceException" use="literal"/>
</fault>
</operation>
</binding>
<service name="AddressBookManagerService">
<port name="AddressBookManagerPort" binding="tns:AddressBookManagerPortBinding">
<soap:address location=""/>
</port>
</service>
</definitions>
2 REPLIES
Moderator

Re: Errors when calling a JD Edwards web service

Hi,
Have you tried the web service with SOAP UI to see if it works?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Errors when calling a JD Edwards web service

Hi Sabrina -
Thanks for the reply.  Yes, it works with SoapUI.
I've tried calling the JDE service using tsoap, twebserviceinput, twebservice, and tESBconsumer and they are all giving me errors.  I was able to call a public web service with no problems - it seems any web service that requires authentication is giving me problems.
Any help would be greatly appreciated.  Thanks