Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 24th, 2005, 10:05 PM
webslider
Guest
 
Posts: n/a
Default Handling multiple portType definitions with the same method name with built-in SOAP

I am trying to communicate with a WSDL that defines to portTypes:

- <portType name="General">
- <portType name="Session">

And their exists 2 operations with the same name but in 2 different
porttypes (the general "GetList" returns a default list of items, the
session "GetList" requires a session ID to be passed in the header and
returns a list based on the session ID):

- <operation name="GetList">
<soap:operation soapAction="urn:XXX-General#GetList" style="rpc" />
- <input message="tns:GetListRequest">
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:XXX-General" />
</input>

- <operation name="GetList">
<soap:operation soapAction="urn:XXX-Session#GetList" style="rpc" />
- <input message="tns:GetListRequest">
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:XXX-Session" />
</input>

When I try to create a client using the build-in SOAP (PHP 5.1 beta 3),
like this:

$client = new SoapClient('http://localhost:8095/soap',
array("trace"=>1, "exceptions"=>0));

I get the message:

Fatal error: SOAP-ERROR: Parsing WSDL: 'GetListRequest' already defined
in d:\Inetpub\PHP\soaptest.php on line 12

Is there a way to handle this situation so that I can specify the
portType, service name, or port name so that the available methods
won't be duplicates?

Thanks.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles