This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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>
...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL and attachments
 
Similar Threads
adding new operation in web service interface
How to capture web service custom edefined exception??
Web Service Deployment problem
Calling a web service in Axis2
Developing Web Services with Apache Axis