aspose file tools*
The moose likes Web Services and the fly likes Understanding the WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Understanding the WSDL " Watch "Understanding the WSDL " New topic
Author

Understanding the WSDL

Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37

I have a service

public interface MessageService {

@WebMethod(operationName = "AnalyzeText")
@WebResult(name = "textAnalysis")
public WsAnalyzed analyzeText(WsText text);

}

my wsdl

<wsdl:message name="AnalyzeTextResponse">
<wsdl:part element="tns:textAnalysis" name="textAnalysis" />
</wsdl:message>

<wsdl:portType name="MessageService">
<wsdlperation name="AnalyzeText">
<wsdl:input message="tns:AnalyzeText" name="AnalyzeText" />
<wsdlutput message="tns:AnalyzeTextResponse" name="AnalyzeTextResponse" />
</wsdlperation>
</wsdl:portType>



AnalyzeText has a return AnalyzeTextResponse,

When I run wsimport on my wsdl

I get returned

public void analyzeText(StringHolder smsBody, String smsTo, AnalyzedRecipientsHolder recipients, EncodingHolder encoding, IntegerWrapperHolder partsPerMessage, IntegerWrapperHolder totalParts);

Should I not get back something like

public object analyzeText(Object text).
 
Don't get me started about those stupid light bulbs.
 
subject: Understanding the WSDL