cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Binding Issue

Former Member
0 Kudos

Hi All,

My Requirement was to publish a RFC as a webserice in PI7.1.

I did the entire configuration and publish display the sender agreement as webservice and took the WSDL from there.

when I test this using SOAP UI tool then this WSDL works fine where the URL is standard

http://host:port/XISOAPAdapter/MessageServlet?channel=:CommunicationComponent:ComminicationChannel

But when I an tring to Use this wsdl in EP I am getting following error.

Cannot Chosse this operation:There is no associated SOAP Binding.

Am I doing Something wrong??

Please help.

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

former_member187339
Active Contributor
0 Kudos

Hi Nidhi,

Can you paste the following here:

port type and its binding. For eg:

<portType name="XYZ">

<operation name="getTerm">

<input message="getTermRequest"/>

<output message="getTermResponse"/>

</operation>

</portType>

<binding name="XYZBinding" type="XYZ">

<soap:binding style="document"

transport="http://schemas.xmlsoap.org/soap/http" />

<operation>

<soap:operation

soapAction="http://example.com/getTerm"/>

<input>

<soap:body use="literal"/>

</input>

<output>

<soap:body use="literal"/>

</output>

</operation>

</binding>

Regards

Suraj

Edited by: S.R.Suraj on Oct 12, 2009 5:32 AM

Former Member
0 Kudos

Hi Suraj,

Sorry for late Response.

Please find the below

- <wsdl:portType name="Z_QMNC_SAVE_CORRECTIONS.PortType">

- <wsdl:operation name="Z_QMNC_SAVE_CORRECTIONS">

<wsdl:input message="rfc:Z_QMNC_SAVE_CORRECTIONS.Input" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" />

<wsdl:output message="rfc:Z_QMNC_SAVE_CORRECTIONS.Output" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:binding name="Z_QMNC_SAVE_CORRECTIONS.PortTypeBinding" type="rfc:Z_QMNC_SAVE_CORRECTIONS.PortType" xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />

- <wsdl:operation name="Z_QMNC_SAVE_CORRECTIONS">

<soap:operation soapAction="http://sap.com/xi/WebService/soap1.1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />

- <wsdl:input>

<soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />

</wsdl:input>

- <wsdl:output>

<soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

former_member187339
Active Contributor
0 Kudos

Hi Nidhi,

The problem is name in portype

<wsdl:portType name="Z_QMNC_SAVE_CORRECTIONS.PortType">

and type in binding should be same

<wsdl:binding name="Z_QMNC_SAVE_CORRECTIONS.PortTypeBinding" type="rfc:Z_QMNC_SAVE_CORRECTIONS.PortType" xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

Here they mismatch. Can you try to check the configuration. Are you using RFC in receiver? Do you have a message Interface for it? or you are using RFC as an interface?

Regards

Suraj

Former Member
0 Kudos

I am using the same RFC as sender and receiver interface.

former_member187339
Active Contributor
0 Kudos

Hi

I didn't get the scenario now

you have made RFC->XI->RFC and is using Portal to test this interface ? And in portal you got this error!!!!!

But why portal? Also when you are using SOAPGUI it is successful, this shows that SOAPUI was able to get teh binding address by loclizing the rfc namesapce, but portal cannot...

So I will suggest that your interface is working fine, but instead of testing from portal either test from SOAPUI or directly from R3

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

Thanks for your reply..

But My requirement is that user enters some text data in Portal and on submit of this form EP Calls a webservice published through PI which update this to R/3.

So now I have generated the WSDL and its able to send the test data to RFC successfully but when we try to bind it in EP it gives error.

Please help.

Br

Nidhi

former_member187339
Active Contributor
0 Kudos

Hi,

Correct....

So you want your source Structure to be sameas RFC Structure. In that case:

1. Export RFC as a wsdl file

2. Remove the targetNamespace="urn:sap-com:document:sap:rfc:functions" from the wsdl file

3. Import it as a extenralDefinition

4. Create a Outbound Service Interface with this external definition

5. complete your other IR part

Create wsdl and test

Regards

Suraj

Former Member
0 Kudos

cant I use the same RFC as sender and receiver interface and then take the WSDL from sender agreement?

former_member187339
Active Contributor
0 Kudos

Hi Nidhi,

If you use that then you will have this SAPECC namespace will come and Portal will not be able to bind with this addres..

So advised is to use a separate sender Service Interface for Portal

Regards

suraj

Former Member
0 Kudos

Thanks for your help suraj,

I will try to implement this hope it solves the problem.

Regards,

Nidhi

Former Member
0 Kudos

Hi Suraj,

Its working fine now thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

please help