Deepal Jayasinghe schrieb:
Hi Tim;

Hi everyone.  I've got a little problem.  I'll try to explain it the
best I can.  I got a POJO working with Axis, but it doesn't work quite
right with Axis2.

I'm serving out a Web Service with Tomcat and Axis2 and my client is
PHP.  Everything worked find when I used Axis (1.4), but with Axis2,
the return types aren't the same.  The WSDL file in Axis2 says the
return types are all complex, but with Axis1 they are simple.  Simple
types work with PHP, but PHP chokes on these complex types.

This is not clear to me , can you please explain bit more. In Axis2 if
you have a pojo that with a method that return string or any simple type
then there wont be any issue with that. And when some one invoke the
service it will send the correct response for example , let's say your
service pojo is as follows;

public String echo(String val){
return val;
}

then the response will be smt like;

<echoResponse>
  <return>val</return>
<echoResponse>

In the meantime  it will be great if you could provide a way to create
the issue.

I'm guessing the problem is that PHP (http://php.net/soap) supports
SOAP 1.1, 1.2, and WSDL 1.1, which Axis1 did too, but now Axis2 is
using WSDL 2.0 by default.  Does this sound right to anyone else?

Nope , Axis2 does not use WSDL 2.0 by default.

If so, how can I get Axis2 to use WSDL 1.1 ? I've looked through the
documentation, but I can't find anything.  If anyone knows a specific
place to look for the answer, I thank you.

I'm thinking this is a setting in server.xml with a messageReceiver,
but I don't know what to set and I can't find this documented anywhere.

Thanks a lot everyone!


--

Thanks
Deepal


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Hi Tim, I think I´m facing a quite similar problem. Do you mean that, instead getting the direct type/object, you only get "wrapped types" ? I´ve already written some questions to the maillist (topic : [Axis2] Is Axis2 wsdl autogeneration configureable ?). Maybe we are facing the same problem ??

Thanks Florian


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to