cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to upload WSDL file into External Definitions of NWDS

Former Member
0 Kudos

Hi Experts,

I am unable to upload WSDL file(attached) into the External Definitions of NWDS(Enterprise Service Repository Prespective). Can you please help me with the steps how it can be done ?

Though, I have been able to upload the same file successfully into the Swing Client(ESR) of PI.

WSDL file format:

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

<wsdl:definitions xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.webserviceX.NET" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

  <wsdl:types>

    <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">

      <s:element name="GetWeather">

        <s:complexType>

          <s:sequence>

............................................

  </wsdl:service>

</wsdl:definitions>

PS:Please remove the .txt extension of the attached file.

Thanks,

Sudhansu

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Sudhansukumar,

I think the problem is the two different SOAP namespaces. Try to set xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap"  instead of xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"

AFAIK, the final payload is not  changed with this change.

Regards.

Former Member
0 Kudos

Hi Iñaki,

Thanks for your suggestion!

This is the original WSDL from the provider. Is there a way to use the WSDL file without tweaking it as it gets uploaded successfully using the Swing Client. Also i have been able to do a test to the end point using the SOAP UI client successfully.

As per you suggestion i have made changes in the WSDL and following is the issue i receive during the upload of the WSDL file.


I am using the following way to upload the WSDL file from my local system (desktop).

Importing Data Types - Creating Design Objects using SAP NetWeaver Developer Studio - SAP Library

Thanks,

Sudhansu

suman_saha
Contributor
0 Kudos

Hi,

There is no address and protocol for GlobalWeatherSoap12.

Change soap12:address location to soap:address location.

Try and let us know

Suman

suman_saha
Contributor
0 Kudos

Change the highlighted area to soap:address location

Suman

Former Member
0 Kudos

Hi Suman,


Suman Saha wrote:

Change the highlighted area to soap:address location

Suman

I have tried changing as you have suggested, NWDS gives the same error while uploading.

Kindly note:

Both soap and soap12 are valid. Please find the Soap Header information and i have highlighted both the xmlns.

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

<wsdl:definitions xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.webserviceX.NET" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

  <wsdl:types>

    <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">

Thanks,

Sudhansu

suman_saha
Contributor
0 Kudos

Hi,

Actually "soap:address location" here soap is the protocol. So there is no protocol named soap12.

If you use soap12, it will unable to find the protocol.

So I thought it may be the issue.



Suman

suman_saha
Contributor
0 Kudos

Hi,

You may check with this.

Suman

Former Member
0 Kudos

Hi Suman,

I am receiving the similar error after uploading the file.

Thanks,

Sudhansu

Former Member
0 Kudos

After making slight modificationi was able to upload the WSDL using NWDS.

Please find the attached updated wsdl.

Importing Data Types - Creating Design Objects using SAP NetWeaver Developer Studio - SAP Library

Answers (0)