cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.11 how to call a webservice without a request message

Former Member
0 Kudos

Hi

In PI 7.11 I am suppose to call a webservice with more than 60 operations. I have imported the Service interface in ESR by referring to the wsdl and hence all the operations are "loaded" in the Service interface and the wsdl including all the messages has also been imported under External Definitions. However, some of the operations only have a response message and others only have a request message.

PI requires both a response and a request message in a synchroneous Service interface, so how do I work around this challenge?

When I import the wsdl directly in SOAPUI the request may look like this for the operation getPartnerTypeElKunde:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:service.isb.informi.dk">

<soapenv:Header/>

<soapenv:Body>

<urn:getPartnerTypeElKunde soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</soapenv:Body>

</soapenv:Envelope>

BR

MIkael

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

I am not clear what you actually want to know.

You should talk to the guys who provide the WSDL what message is expected.

Zhey can tell you, what message they expect and more important: Which data must be transferred.

Former Member
0 Kudos

The problem is, that no message is expected when calling the web service. All they expect is that I specify the operation as indicated in the SOAP request snippet. No (business) data is expected when calling the web service.

stefan_grube
Active Contributor
0 Kudos

> The problem is, that no message is expected when calling the web service. All they expect is that I specify the operation as indicated in the SOAP request snippet. No (business) data is expected when calling the web service.

You are wrong. They expect an (empty) message with message type getPartnerTypeElKunde

This is your request message. So define a sync interface with request message type getPartnerTypeElKunde.

Former Member
0 Kudos

ok, you are right, although, I think I shall try to pursuate the web service provider to include the messages in the wsdl

Thanks for you input.

Answers (1)

Answers (1)

Former Member
0 Kudos

You can set message interface as async.