File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

JavaRanch » Java Forums » Java » Web Services
Bookmark "Understanding the WSDL " Watch "Understanding the WSDL " New topic

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:portType name="MessageService">
<wsdlperation name="AnalyzeText">
<wsdl:input message="tns:AnalyzeText" name="AnalyzeText" />
<wsdlutput message="tns:AnalyzeTextResponse" name="AnalyzeTextResponse" />

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).
I agree. Here's the link:
subject: Understanding the WSDL