The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: Namespaces included in XML Response

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered. Helpful answers available: 1. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: May 30, 2007 4:47 PM by: vivekp
ellingdr

Posts: 12
Namespaces included in XML Response
Posted: May 30, 2007 11:01 AM
 
  Click to reply to this thread Reply

How does JAXWS determine what namespaces declarations to include in the xml response of a web service call? My WSDL imports a couple of additional namespaces used by the request, however, the data types that make up the response are from a single namespace. The XML response includes the declarations for the unused namespaces. Does the response simply include all namespaces that are declared within the wsdl?

vivekp

Posts: 286
Re: Namespaces included in XML Response
Posted: May 30, 2007 4:47 PM   in response to: ellingdr
Helpful
  Click to reply to this thread Reply

It depends on whether its rpc/lit or doc/lit binding. Incase of doc/lit, the request or response will be based on the corresponding global element declaration referenced from the corresponding wsdl:part. In case of rpc/lit, the response will be based on the wsdl:operation@name+Response as local name and the targetNamespace oderived from the soapbind:body@namespace value in the binding section.

-vivek.




 XML java.net RSS