This content has been marked as final.
Show 3 replies
-
1. Re: Problem with wsdl, accessing a WebMethod in a statelessS
hessman Aug 29, 2006 9:52 AM (in response to hessman)I found out that the problem is in the wsdl at line 18.
<message name="CustomersSessionBean_HelloWorldResponse"> <part name="result" element="s0:HelloWorldResponse" /> </message>
The error is the "name" attribute. It should be called "parameters".<message name="CustomersSessionBean_HelloWorldResponse"> <part name="parameters" element="s0:HelloWorldResponse" /> </message>
My new question is: How can i change that behaviour on JBOSS? -
2. Re: Problem with wsdl, accessing a WebMethod in a statelessS
doug.palmer Aug 29, 2006 1:10 PM (in response to hessman)Interesting, where do you get the wsdl from? You are already doing the correct thing to rename return but you name it "Hello". Hence, your generated wsdl should read:
<message name="CustomersSessionBean_HelloWorldResponse"> <part name="Hello" element="s0:HelloWorldResponse" /> </message>
If you inserted @WebResult(name="parameters") then you should get:<message name="CustomersSessionBean_HelloWorldResponse"> <part name="parameters" element="s0:HelloWorldResponse" /> </message>
This definitely works with JBossWS-1.0.2.
Regards
Doug -
3. Re: Problem with wsdl, accessing a WebMethod in a statelessS
hessman Aug 30, 2006 10:58 AM (in response to hessman)Firstly Doug i have to say thankya for your reply.
Nevertheless it isn't working in that way. I've changed my method from@WebMethod(operationName="HelloWorld") @WebResult(name="Hello") public String HelloWorld(){ return "Hello World"; }
to@WebMethod(operationName="HelloWorld") @Webresult(name="parameters") public String HelloWorld(){ return "Hello World"; }
and all what had changed was line 9 to 11 in the jboss.wsdl from hello to parameters<s:sequence> <s:element name="hello" nillable="true" type="s:string" /> </s:sequence>
As far as i can see there are no other changes in the wsdl document. I think the @WebResult annotation has no impact on the<message name="CustomersSessionBean_HelloWorldResponse"> <part name="result" element="s0:HelloWorldResponse" /> </message>
name attribute within the part tag. to alter this entry from result to parameters would be great. Any hints how to change that would be appreciated. Thank you.
best greetings from hamburg
Dirk