cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL portType not have child Policy

Former Member
0 Kudos

Hi,

I am getting the following error when trying to test the webservice through wsnavigator.

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

What is the wsp:Policy? Let me know how to solve it.

Thanks & Regards,

Dhanunjaya Reddy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Follow these steps-

(I) Checking Domain name of WSDL

a) Open SOAMANAGER and navigate to "Business Administration" tab.

b) Click on "Web Service Administration" link

c) In "Search Pattern" search for your Webservice and click on "GO".

d) Select the line and click "Apply Selection" button

e) The details of your service definition is displayed. Click on "Open WSDL document for selected binding" link.

f) Copy the URL. Make a special note of your domain Name. Eg: "http://xxxxx.com:"

(II) Checking J2EE setting in SOAMANAGER

a) Go back to your SOAMANAGER home page by clicking "Back" link.

b) Select "Technical Configuration" Tab and click on "System Global Settings".

c ) Select "Access Information J2EE server" Tab and note down your J2EE host settings.

Note: If there are no J2EE host settings, then you probably get them from your BASIS team. Once you get the details, save the host settings.

(III) Clearing the WSDL Port Type error

a) Follow steps (a) thru (d) in Part I and click on 3rd link- "Open Web Service navigator for selected binding".

b) Now your WS Navigator is open. Your work starts here. Provide the WSDL URL from Part (I).f step when asked for "Enter the WSDL URL of the Web service:". Click "Next" button.

Possible outcomes-

i) Overview page of your Webservice is seen. In this case you can click on "Test" link on top and continue ... OR

ii) You get a error page namely-

Cannot download WSDL from http://xxxx.com:Port#.

If this is the case, then you need to provide the domain name noted down in PART I- step (f). and hit <Enter> This will open up the Overview page of your Webservice!

Happy Troubleshooting!

Former Member
0 Kudos

Hey,

While trying to log into Web service Navigator try using J2EE_Admin as user id and its corresponding password.

Also use the Tcode SOAMANAGER to generate your wsdl...

Check the link as below it will help you :

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20b723f8-a422-2c10-aca5-fe64eeda1ff2&override...

Cheers

Dhwani