cancel
Showing results for 
Search instead for 
Did you mean: 

No structure specified in response messge in WSDL

Former Member
0 Kudos

Hi all,

I am using a wsdl file of an webservice as the external defination.But when I check the response message structure in the wsdl ,I found Its kept as type String where as it should be of type complex and of a specific data type(Data structe--hierrarchical).For this reason I am not getting the message structure in the message mapping pane ,only getting the message name not the structure of it.But exept that how I can map that message to an specified idoc structure.

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

If ur wsdl does not have the response structure, then there is no way by which u can achieve this in mapping. U ll have to correct the wsdl structure first and reimport it. Also make sure that the wsdl is in document format and not rpc.

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

Is there any alternative way tohandle this problem as if I dont use the wsdl atall and create my own messase type according to the desired data type. But in that case can I use soap adapter? or I am not correct at all.

Abhishek

prateek
Active Contributor
0 Kudos

When we have webservice at receiver, the wsdl only helps in the configuration. It is not mandatory to use it. U can create your own message types and use for ur scenario. Just make sure the structures are exactly same as expected by webservice.

Regards,

Prateek

Former Member
0 Kudos

Hi Boss,

So you say I dont need to use their wsdl if I have data type and message type in my hand. In that case can I use soap adapter? in the soap address what the end point url I can provide? the url what is given in their wsdl?

If possible You can give me you mob number,I can talk to you

prateek
Active Contributor
0 Kudos

Yes, u can use soap adapter.

Yes u can copy the url from the wsdl.

It would be better to talk on sdn, bcoz here u will be able to get the views from experts all over the world. And this would help all others referring this forum.

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

In that case can it be a problem coz they are having different name of message in wsdl and my message and data type name is different as I had created both before.Will it create a mess as the webservice knows those names?

prateek
Active Contributor
0 Kudos

my message and data type name is different

It should be same as that expected by webservice and present in wsdl. Ur own names won't work.

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

<?xml version="1.0" encoding="ISO-8859-1"?>

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://bean.getinvoiceinformation.ewsc.nesas.nissan.com">

<wsdl:types>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://bean.getinvoiceinformation.ewsc.nesas.nissan.com" targetNamespace="http://bean.getinvoiceinformation.ewsc.nesas.nissan.com">

<xsd:element name="generateInvoiceInformationResponse">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="generateInvoiceInformationReturn" type="xsd:string" nillable="true" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<xsd:element name="generateInvoiceInformation">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="fromDate" type="xsd:string" nillable="true" />

<xsd:element name="toDate" type="xsd:string" nillable="true" />

<xsd:element name="countryCode" type="xsd:string" nillable="true" />

<xsd:element name="specType" type="xsd:string" nillable="true" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

<wsdl:message name="generateInvoiceInformationRequest">

<wsdl:part xmlns:generateduniqueprefix0="http://bean.getinvoiceinformation.ewsc.nesas.nissan.com" name="parameters" element="generateduniqueprefix0:generateInvoiceInformation" />

</wsdl:message>

<wsdl:message name="generateInvoiceInformationResponse">

<wsdl:part xmlns:generateduniqueprefix1="http://bean.getinvoiceinformation.ewsc.nesas.nissan.com" name="parameters" element="generateduniqueprefix1:generateInvoiceInformationResponse" />

</wsdl:message>

</wsdl:definitions>

Please check.

Here in the message tab this wsdl shows the message names as generateInvoiceInformationRequest

generateInvoiceInformationResponse

But in the message pane the request msg name comes as

generateInvoiceInformation

Response msg name comes as:

generateInvoiceInformationReturn

Totally confusing.Please check the wsdl and suggest

prateek
Active Contributor
0 Kudos

The wsdl look ok.

Here in the message tab this wsdl shows the message names as generateInvoiceInformationRequest

generateInvoiceInformationResponse

Correct. I also checked it.

But in the message pane the request msg name comes as

generateInvoiceInformation

U create ur message with this name only. (without Request)

Response msg name comes as:

generateInvoiceInformationReturn

It is just the field name under enerateInvoiceInformationResponse

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

So what would be my repone message name?

plz suggest.

Former Member
0 Kudos

hi prateek,

I have tried with that but this time the SOAP communication channel is coming as inactive.Is it due to end point url problem or anything else.please suggest

Former Member
0 Kudos

hi prateek,

I have tried with that but this time the SOAP communication channel is coming as inactive.Is it due to end point url problem or anything else.please suggest

Answers (1)

Answers (1)

Former Member
0 Kudos

Idea Dropped.