cancel
Showing results for 
Search instead for 
Did you mean: 

Message when test a Proxy to consume web service

Former Member
0 Kudos

Hi all,

I developed a function module, Web service for this RFC enable function module & Proxy to consume that web service. But when I am going to test this Proxy (From SE80, Proxy > Test), It;s giving me a message

SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/.

And I didn't test the Proxy, I regenerate the Web service(Just because any issue in WSDL code), but it also not working for me.

Can you please suggest me why I am facing this type of Problem.

Thanks

Sanket sethi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sanket,

Can you please give more details.

What is your scenario?

You developed RFC and exposed it as web service? Where are you trying to consume it? Is it a different system?

Regards,

Vikas

Former Member
0 Kudos

Hi Vikas,

I created a RFC and web service. I also created a Proxy to consume it. And I want to test it in the same server.

Former Member
0 Kudos

Hi,

first test your service using WSNAVIGATOR or SOAP UI and it is working fine then issue could be with "PortType" or wsdl is "Document" or "RPC" type.

post part of your wsdl here (top 4-5 lines atleast)

Regards,

Gourav

Former Member
0 Kudos

Here's some lines of my WSDL code:

<?xml version="1.0" encoding="utf-8" ?>

- <wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:n1="urn:sap-com:document:sap:rfc:functions">

- <wsdl:documentation>

<sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl" />

</wsdl:documentation>

<wsp:UsingPolicy wsdl:required="true" />

- <wsp:Policy wsu:Id="IF_ZWS_Proof_concept">

<wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" />

- <sapsession:Session xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/">

<sapsession:enableSession>false</sapsession:enableSession>

</sapsession:Session>

Former Member
0 Kudos

Hi Sanket,

You mean you exposed RFC as a web service?

You should test the web service from external SOAP client.

Regards,

Vikas

Former Member
0 Kudos

Hi,

to me it seems you are using WSDL type RPC (not RFC), try to use wsdl of document type url of your service should end with:

"http://xxxxxxxxxxxx:xxxxxx/xxxxxxxxxxxxx/ wsdl11/ws_policy/document?sap-client=800"

*"http://xxxxxxxxxxxx:xxxxxx/xxxxxxxxxxxxx/wsdl11/ws_policy/rpc?sap-client=800" *.

change it in SE85, search your service and see details there and then try to recreate proxy with "Document" style wsdl.

Try other way round as well.

Regards,

Gourav

Former Member
0 Kudos

Hi,

did you check Transaction LPCONFIG if a Default Logical Port is defined so you can test your proxy client with a LP via the Webservices Runtime?

Regards,

Daniel Nimtsch

Former Member
0 Kudos

Hi,

I defined a logical port and when I try to test the Proxy via SE80 it ask for port. After giving the port the WSDL code displays and an execute button on the top, by executing this button I am getting this message.

And I am not able to test the Web service.