Re: formatting the soap response ?

2008-08-13 Thread Moez Benmbarka

Hi,

I think the type attributes are due to the use of the WSDL RPC/Encoded 
style in your web service.
To receive the response you want, you should use a wrapped 
Document/Literal style.
Look at this tutorial for choosing an appropriate WSDL style : 
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/


Regards,
Moez BM

pierre betz wrote:

Hi everybody, I have a little .. important question :

here is the response i retrieve when I call my web service :

?xml version='1.0' encoding='utf-8'?
soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

 soapenv:Body
  ns3:SearchVslUserResponse xmlns:ns3=http:/localhost/User/operations/
   VslUserList xmlns:ns2=http:/localhost/schema/VSLUserTypes 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:type=ns2:VslUserListType
 
VslUser xsi:type=ns2:VslUserType

 UserIdPERSONNE000774/UserId
/VslUser

   /VslUserList
  /ns3:SearchVslUserResponse
 /soapenv:Body
/soapenv:Envelope

As you can see, the field VslUser as the xsi:type=ns2:VslUserType 
in the braket...


My question, really simply, is : how can I have just the response like 
taht : without the xsi:type everywhere ?


?xml version='1.0' encoding='utf-8'?
soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

 soapenv:Body
  ns3:SearchVslUserResponse xmlns:ns3=http:/localhost/User/operations/
   VslUserList
 
VslUser

 UserIdPERSONNE000774/UserId
/VslUser

   /VslUserList
  /ns3:SearchVslUserResponse
 /soapenv:Body


? any ideas ?




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



Re: formatting the soap response ?

2008-08-13 Thread pierre betz
thanks a lot for the quick response :)
... the problem is that I work on a complete extranet using web services...

and.. it's really really too big to re-create all the files with axis2
wsdl2java too long, too big...

is there another way to make it work ?

with axis 1.4 it was working well, without the xsi:type , using adb and
all the stuff.

I just passed from axi 1.4 to axis2  1.4 ... so I would like to not change
the wsdl files..

but if you say it's the only way
Just want to be sure of that before restarting all the work :( :(

anyway.. thanks :)




2008/8/13 Moez Benmbarka [EMAIL PROTECTED]

 Hi,

 I think the type attributes are due to the use of the WSDL RPC/Encoded
 style in your web service.
 To receive the response you want, you should use a wrapped Document/Literal
 style.
 Look at this tutorial for choosing an appropriate WSDL style :
 http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/

 Regards,
 Moez BM


 pierre betz wrote:

 Hi everybody, I have a little .. important question :

 here is the response i retrieve when I call my web service :

 ?xml version='1.0' encoding='utf-8'?
 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
  ns3:SearchVslUserResponse xmlns:ns3=http:/localhost/User/operations/
   VslUserList xmlns:ns2=http:/localhost/schema/VSLUserTypes xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
 xsi:type=ns2:VslUserListType
  VslUser xsi:type=ns2:VslUserType
 UserIdPERSONNE000774/UserId
/VslUser

   /VslUserList
  /ns3:SearchVslUserResponse
  /soapenv:Body
 /soapenv:Envelope

 As you can see, the field VslUser as the xsi:type=ns2:VslUserType in
 the braket...

 My question, really simply, is : how can I have just the response like
 taht : without the xsi:type everywhere ?

 ?xml version='1.0' encoding='utf-8'?
 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
  ns3:SearchVslUserResponse xmlns:ns3=http:/localhost/User/operations/
   VslUserList
  VslUser
 UserIdPERSONNE000774/UserId
/VslUser

   /VslUserList
  /ns3:SearchVslUserResponse
  /soapenv:Body


 ? any ideas ?



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




Re: formatting the soap response ?

2008-08-13 Thread pierre betz
ho.. and.. thinking about that ...

I use rpc/literal..  :) so its not that  :( .. normally with rpc/literal it
should work.


please tell me if you need some informations like wsdl/schema files or other
things, if you have some time to help me.

thanks :)

Pierre





2008/8/13 pierre betz [EMAIL PROTECTED]

 thanks a lot for the quick response :)
 ... the problem is that I work on a complete extranet using web services...

 and.. it's really really too big to re-create all the files with axis2
 wsdl2java too long, too big...

 is there another way to make it work ?

 with axis 1.4 it was working well, without the xsi:type , using adb and
 all the stuff.

 I just passed from axi 1.4 to axis2  1.4 ... so I would like to not change
 the wsdl files..

 but if you say it's the only way
 Just want to be sure of that before restarting all the work :( :(

 anyway.. thanks :)




 2008/8/13 Moez Benmbarka [EMAIL PROTECTED]

 Hi,

 I think the type attributes are due to the use of the WSDL RPC/Encoded
 style in your web service.
 To receive the response you want, you should use a wrapped
 Document/Literal style.
 Look at this tutorial for choosing an appropriate WSDL style :
 http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/

 Regards,
 Moez BM


 pierre betz wrote:

 Hi everybody, I have a little .. important question :

 here is the response i retrieve when I call my web service :

 ?xml version='1.0' encoding='utf-8'?
 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
  ns3:SearchVslUserResponse xmlns:ns3=http:/localhost/User/operations/
   VslUserList xmlns:ns2=http:/localhost/schema/VSLUserTypes
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:type=ns2:VslUserListType
  VslUser xsi:type=ns2:VslUserType
 UserIdPERSONNE000774/UserId
/VslUser

   /VslUserList
  /ns3:SearchVslUserResponse
  /soapenv:Body
 /soapenv:Envelope

 As you can see, the field VslUser as the xsi:type=ns2:VslUserType in
 the braket...

 My question, really simply, is : how can I have just the response like
 taht : without the xsi:type everywhere ?

 ?xml version='1.0' encoding='utf-8'?
 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;
  soapenv:Body
  ns3:SearchVslUserResponse xmlns:ns3=http:/localhost/User/operations/
   VslUserList
  VslUser
 UserIdPERSONNE000774/UserId
/VslUser

   /VslUserList
  /ns3:SearchVslUserResponse
  /soapenv:Body


 ? any ideas ?



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