I’m attempting to consume a 3rd party webservice, but I’m
running into all sorts of problems. I’ve tried everything I can
find on here and on the ‘net to get this working, but it’s not
happening for me. I’m getting everything from ‘could not generate
stub objects’ to ‘service not found’ bla bla bla, regardless of how
I try to set this up.

The webservice is an extremely simple one and is in a dev
environment. Here’s the WSDL (server name has been masked for
privacy):

<?xml version=”1.0″ encoding=”UTF-8″ ?>

- <definitions xmlns=”
http://schemas.xmlsoap.org/wsdl/”
xmlns:s0=”urn:sap-com:document:sap:rfc:functions” xmlns:xsd=”
http://www.w3.org/2001/XMLSchema”
xmlns:soap=”
http://schemas.xmlsoap.org/wsdl/soap/”
xmlns:http=”
http://schemas.xmlsoap.org/wsdl/http/”
targetNamespace=”urn:sap-com:document:sap:rfc:functions”>

- <types>

- <xsd:schema
targetNamespace=”urn:sap-com:document:sap:rfc:functions”>

- <xsd:element name=”STFC_CONNECTION”>

- <xsd:complexType>

- <xsd:all>

- <xsd:element name=”REQUTEXT”>

- <xsd:simpleType>

- <xsd:restriction base=”xsd:string”>

<xsd:maxLength value=”255″ />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

</xsd:all>

</xsd:complexType>

</xsd:element>

- <xsd:element name=”STFC_CONNECTION.Response”>

- <xsd:complexType>

- <xsd:all>

- <xsd:element name=”ECHOTEXT”>

- <xsd:simpleType>

- <xsd:restriction base=”xsd:string”>

<xsd:maxLength value=”255″ />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

- <xsd:element name=”RESPTEXT”>

- <xsd:simpleType>

- <xsd:restriction base=”xsd:string”>

<xsd:maxLength value=”255″ />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

</xsd:all>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</types>

- <message name=”STFC_CONNECTIONInput”>

<part name=”parameters” element=”s0:STFC_CONNECTION”
/>

</message>

- <message name=”STFC_CONNECTIONOutput”>

<part name=”parameters”
element=”s0:STFC_CONNECTION.Response” />

</message>

- <portType name=”STFC_CONNECTIONPortType”>

- <operation name=”STFC_CONNECTION”>

<input message=”s0:STFC_CONNECTIONInput” />

<output message=”s0:STFC_CONNECTIONOutput” />

</operation>

</portType>

- <binding name=”STFC_CONNECTIONBinding”
type=”s0:STFC_CONNECTIONPortType”>

<soap:binding style=”document” transport=”
http://schemas.xmlsoap.org/soap/http”
/>

- <operation name=”STFC_CONNECTION”>

<soap:operation soapAction=”
http://www.sap.com/STFC_CONNECTION”
/>

- <input>

<soap:body use=”literal” />

</input>

- <output>

<soap:body use=”literal” />

</output>

</operation>

</binding>

- <service name=”STFC_CONNECTIONService”>

<documentation>SAP Service STFC_CONNECTION via
SOAP</documentation>

- <port name=”STFC_CONNECTIONPortType”
binding=”s0:STFC_CONNECTIONBinding”>

<soap:address location=”
http://xxxxxxxx.xxxx.xxx.xx:8001/sap/bc/soap/rfc”
/>

</port>

</service>

</definitions>

I’m told this is what needs to be sent to the service in
order to get the response back:

<SOAP-ENV:Envelope xmlns:SOAP-ENV=”
http://schemas.xmlsoap.org/soap/envelope/”
xmlns:SOAP-ENC=”
http://schemas.xmlsoap.org/soap/encoding/”
xmlns:xsi=”
http://www.w3.org/2001/XMLSchema-instance”
xmlns:xsd=”
http://www.w3.org/2001/XMLSchema”>

<SOAP-ENV:Header>

<security>

<userId></userId>

<password></password>

</security>

</SOAP-ENV:Header>

<SOAP-ENV:Body>

<m:STFC_CONNECTION
xmlns:m=”urn:sap-com:document:sap:rfc:functions”>

<REQUTEXT>String</REQUTEXT>

</m:STFC_CONNECTION>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

This is apparently the response I should get back from the
service after successfully executing the call:

<?xml version=”1.0″
encoding=”UTF-8″?><SOAP-ENV:Envelope xmlns:SOAP-ENC=”
http://schemas.xmlsoap.org/soap/encoding/”
xmlns:SOAP-ENV=”
http://schemas.xmlsoap.org/soap/envelope/”><SOAP-ENV:Body><m:STFC_CONN ECTION.Response
xmlns:m=”urn:sap-com:document:sap:rfc:functions”><ECHOTEXT>String</EC HOTEXT><RESPTEXT>SAP
R/3 Rel. 620 Sysid: DV7 Date: 20060116 Time: 153442 Logon_Data:
160/WEBSERVICE/E</RESPTEXT></m:STFC_CONNECTION.Response></SOAP-ENV:Bo dy></SOAP-ENV:Envelope>

I’m told that there are 2 URLs for this. The first is where
the WSDL is, the second is where the call is.

First is
http://xxxxxxxx.xxxx.xxx.xx:8001/sap/bc/soap/wsdl11?services=STFC_CONN ECTION&sap-client=160

Second is
http://xxxxxxxx.xxxx.xxx.xx:8001/sap/bc/soap/rfc?sap-user=XXXXXXXXXX&s ap-password=XXXXXXXX&sap-client=160

How do I get this working??|||
*bump*

Come on guys….someone must be able to tell me how to get
this going in CF??

Related posts:

  1. NuSoap server + wsdl + pdf form
  2. Calling SOAP web service
  3. Calling SOAP web service
  4. Web Service consumer
  5. Extra node added to my SOAP response

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD