cancel
Showing results for 
Search instead for 
Did you mean: 

Problem calling Webservice using SOAP Protocol

Former Member
0 Kudos

Hi ,

When I call the a 3rd party webservice from XI using SOAP protocol with XML data packet I am getting an error.

But when I call the same webservice using another 3rd party SOAP client, it is working fine. The only difference between XI and 3rd party is that XML has some more tags. Please see both the XML files and let me know If need to do anything more in XI to make it work.

The Webservice has a input parameter and output parameter to pass the status.

XI - XML Data Packet

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

<Contracts>

<Control>

<createdWhen>2006-06-12T10:48:55</createdWhen>

<destinationAddress />

<documentGUID>e1a2556f-86dc-400b-9304-1c393ad961de</documentGUID>

<operation staticValue="Change" />

<schemaVersion>31N</schemaVersion>

<sourceAddress>Global</sourceAddress>

<version>3.00</version>

</Control>

<Contract>

<contractAmount>2050.00</contractAmount>

<contractBillingType staticValue="Per Contract" />

<contractCurrency staticValue="United Kingdom - Pound" />

<contractDataSource dynamicValue="SAP" />

<contractEffectiveDate>2007-01-01</contractEffectiveDate>

<contractStatus staticValue="Active" />

<Customer>

<customerIdentifier>fe3ccebc-6f64-4849-95d5-0b3b84c204d6</customerIdentifier>

</Customer>

<contractBusinessUnit dynamicValue="UK">

<businessUnitDescription>United Kingdom</businessUnitDescription>

</contractBusinessUnit>

</Contract>

</Contracts>

3rd Party - XML Data Packet (This one works)

<PutXMLDocument xmlns="http://test.com/SMIWebService/">

<XMLString><?xml version='1.0' encoding='UTF-16' ?>

<Contracts>

<Control>

<createdWhen>2006-06-08T07:03:55</createdWhen>

<destinationAddress></destinationAddress>

<documentGUID>A9A5107B-45A6-43A4-8218-D72C8115C9CB</documentGUID>

<operation staticValue="Change"/>

<schemaVersion>31N</schemaVersion>

<sourceAddress>Global</sourceAddress>

<version>3.00</version>

</Control>

<Contract>

<contractAmount>20500.00</contractAmount>

<contractBillingType staticValue="Per Contract"/>

<contractCurrency staticValue="United Kingdom - Pound"/>

<contractDataSource dynamicValue="SAP"/>

<contractEffectiveDate>2007-01-01</contractEffectiveDate>

<contractStatus staticValue="Active"/>

<Customer>

<customerIdentifier>FE3CCEBC-6F64-4849-95D5-0B3B84C204D6</customerIdentifier>

</Customer>

<contractBusinessUnit dynamicValue="UK">

<businessUnitDescription>United Kingdom</businessUnitDescription>

</contractBusinessUnit>

</Contract>

</Contracts></XMLString>

<ErrorString />

</PutXMLDocument>

Thanks in advance for the help.

Thanks

Sri

Accepted Solutions (0)

Answers (2)

Answers (2)

STALANKI
Active Contributor
0 Kudos

Try this excellent blog for u to trace the error and check the blog provided by krishna after knowing the error..!

/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client

moorthy
Active Contributor
0 Kudos

Hi kumar,

<i>

When I call the a 3rd party webservice from XI using SOAP protocol with XML data packet I am getting an error.</i>

>>What is the error?

-check the target URL mentioned in the SOAP receiver Adapter congifuation.

It should be wsdl URL.

Have a look into this~

/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi

Regards,

Moorthy

Former Member
0 Kudos

Hi Moorthy,

I am getting "Invalid Procedure or Argument" error.

Thanks

Sri

Former Member
0 Kudos

Hi Kumar,

Try to run the web service standalone and pass same parameters you are passing here in XI and check whether it is working fine?

Thanks,

Yaseen M