This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes WSDL and attachments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL and attachments" Watch "WSDL and attachments" New topic
Author

WSDL and attachments

Hakan Jonsson
Greenhorn

Joined: Nov 18, 2003
Posts: 4
Hi,

I am trying to implement the ParlayX SendMessage web service according to its given specification and wsdl file. The specification states that the operation should accept attachments in MIME or DIME, but the wsdl does not in anyway indicate that attachments should be used. Does this mean that there is an error in the wsdl?

Specification:
"sendMessage(EndUserIdentifier [] destinationAddressSet, String senderAddress, String subject, MessagePriority priority, String charging, out String requestIdentifier) Attachment[content]

Behavior:
The content is sent as a SOAP-Attachment encoded using MIME or DIME."

WSDL:
<wsdl:binding name='SendMessageBinding' type='port:SendMessagePort'>
<soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>

<wsdl peration name='sendMessage'>
<soap peration soapAction='SendMessage#sendMessage' style='rpc'/>
<wsdl:input>
<soap:body use='literal'/>
</wsdl:input>
<wsdl utput>
<soap:body use='literal'/>
</wsdl utput>
<wsdl:fault name='UnknownEndUserException'>
<soap:fault use='literal'/>
</wsdl:fault>
...

<wsdl:message name='SendMessage_sendMessageRequest'>
<wsdl art name='destinationAddressSet' type='parlayx_common_xsd:ArrayOfEndUserIdentifier'/>
<wsdl art name='senderAddress' type='xsd:string'/>
<wsdl art name='subject' type='xsd:string'/>
<wsdl art name='priority' type='parlayx_mm_xsd:MessagePriority'/>
<wsdl art name='charging' type='xsd:string'/>
</wsdl:message>

...

<wsdl:message name='SendMessage_sendMessageRequest'>
<wsdl art name='destinationAddressSet' type='parlayx_common_xsd:ArrayOfEndUserIdentifier'/>
<wsdl art name='senderAddress' type='xsd:string'/>
<wsdl art name='subject' type='xsd:string'/>
<wsdl art name='priority' type='parlayx_mm_xsd:MessagePriority'/>
<wsdl art name='charging' type='xsd:string'/>
</wsdl:message>
...
Hakan Jonsson
Greenhorn

Joined: Nov 18, 2003
Posts: 4
Oops, guess I should have disabled smileys. WSDL again:

WSDL:
<wsdl:binding name='SendMessageBinding' type='port:SendMessagePort'>
<soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>

<wsdlperation name='sendMessage'>
<soapperation soapAction='SendMessage#sendMessage' style='rpc'/>
<wsdl:input>
<soap:body use='literal'/>
</wsdl:input>
<wsdlutput>
<soap:body use='literal'/>
</wsdlutput>
<wsdl:fault name='UnknownEndUserException'>
<soap:fault use='literal'/>
</wsdl:fault>
...

<wsdl:message name='SendMessage_sendMessageRequest'>
<wsdl:part name='destinationAddressSet' type='parlayx_common_xsd:ArrayOfEndUserIdentifier'/>
<wsdl:part name='senderAddress' type='xsd:string'/>
<wsdl:part name='subject' type='xsd:string'/>
<wsdl:part name='priority' type='parlayx_mm_xsd:MessagePriority'/>
<wsdl:part name='charging' type='xsd:string'/>
</wsdl:message>

...

<wsdl:message name='SendMessage_sendMessageRequest'>
<wsdl:part name='destinationAddressSet' type='parlayx_common_xsd:ArrayOfEndUserIdentifier'/>
<wsdl:part name='senderAddress' type='xsd:string'/>
<wsdl:part name='subject' type='xsd:string'/>
<wsdl:part name='priority' type='parlayx_mm_xsd:MessagePriority'/>
<wsdl:part name='charging' type='xsd:string'/>
</wsdl:message>
...
 
jQuery in Action, 2nd edition
 
subject: WSDL and attachments
 
Similar Threads
Developing Web Services with Apache Axis
adding new operation in web service interface
Calling a web service in Axis2
Web Service Deployment problem
How to capture web service custom edefined exception??