cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Testing a Web Service

Former Member
0 Likes
4,068

Hi Experts,

I'm new to publishing Web Services. To create my first WS, I followed help step by step from http://help.sap.com/saphelp_nw2004s/helpdata/en/68/0464407b9b990ae10000000a155106/frameset.htm.

After I created a service definition, when I tried to test the service through SOA MANAGER, I received the following error.

-


Cannot download WSDL from http://****/sap/bc/srt/wsdl/sdef_Z_WS_TEST_3/wsdl11/ws_policy/document?sap-client=200: WSDL 'portType' can not have child 'wsp:Policy' of namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' !

-


It seems that the namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' defined in WSDL is not proper. However, I just don't understand how the WSDL generated by Service Wizard could be wrong.

Any idea where the namespace comes form? Any way to modify the namespace?

The following is the beginning part of my WSDL:

<?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_Z_WS_TEST_3">

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

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

<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"/>

</wsp:Policy>

Thanks for your help in advace,

Kay

View Entire Topic
Former Member
0 Likes

I am also receivnig this error when setting up my first web service. Did either Kay or Steffen find an solution?

Thanks,

T

Former Member
0 Likes

I have the same problem. My WS works från WS explorer on our NW CE 7.1 system and it works from a 7.1 Web Dynpro. I get this error when trying to import the webservice in an older 6.40 Wb Dynpro.

jean-philippe_pain2
Participant
0 Likes

Hi,

I have the same error.

Is someone found the answer plz ?

Thanks

Former Member
0 Likes

Use SOAP UI Tool for Testing Webservice. Please refer foll url:

http://www.soapui.org/gettingstarted/your_first_soapUI_project.html

jean-philippe_pain2
Participant
0 Likes

hi,

Thanks for the info !

i've downloaded and tried it..My concern is that i have a logon problem. it doesn't ask me to sign on.

Do i have to change thr default url that i got from my wsdl or there is an option ?

(i am beginner in web services)

Thanks,

JP

EDIT : FORGET IT, I'VE FOUND IT !

Edited by: Jean-Philippe PAIN on Feb 19, 2009 8:16 PM