Why is it necessary to put the element
into a specific namespace? Is this a pre-existing service that you can’t
modify? If so, then I think your best bet is to define the service as
Document/Literal, and then you can specify the exact namespaces that you
require. If you want your message to look like this: <createSalesOrder xmlns="urn:SalesCreator">
Then you’ll need to define it this
way: <wsdl:message
name="createSalesOrderRequest">
<types> <schema targetNamespace=”urn:SalesCreator” xmlns:ns2=”urn:SalesOrderWrap”> <import namespace=”urn:SalesOrderWrap”/> <element name=createSalesOrder”
type=”ns2:SalesOrderWrap”/> </schema> <schema targetNamespace=”urn:SalesOrderWrap” elementFormDefault=”qualified”> <complexType name=”SalesOrderWrap”>
<sequence>
<element name=”SalesOrder” type=…/>
</sequence> </complexType> </schema> </types> From: Wei Hsu
[mailto:[EMAIL PROTECTED] Hmmm,
maybe it's time I take a look at that WS-I Basic Profile. Thanks for the help
guys. I guess I'll just have to figure out a workaround then. -Wei
-----Original
Message----- Actually,
WSDL2Java is working properly, according to the rules defined in The n1
namespace refers to the type definition, not to the element Per the
WS-I BP: R2735 A
MESSAGE described with an rpc-literal binding MUST place the part
If you
want the elements to be namespace qualified, then you must use [1] http://www.ws-i.org/Profiles/Basic/2003-08/BasicProfile-1.0a.html
Regards,
-----Original
Message----- If your
schema specifies elementFormDefault="unqualified", or does not
Try
adding elementFormDefault="qualified" to your schema. Best
regards, Robert
Lowe -----Original
Message----- Hi all,
I've been
trying to run WSDL2Java on my RPC/Literal WSDL, but I keep running
<wsdl:message
name="createSalesOrderRequest"> Here,
assume n1 belongs to namespace my.example.com and the namespace of the
But when
I generate the stubs and make call with them, I found out that the
<createSalesOrder
xmlns="urn:SalesCreator"> Instead
of setting the xmlns for SalesOrder to that of SalesOrderWrap or My
question is, is there any thing I can add to the WSDL so that the
Thanks so
much! Wei
|
Title: RE: problem using WSDL2Java on RPC/Literal
- problem using WSDL2Java on RPC/Literal Wei Hsu
- RE: problem using WSDL2Java on RPC/Literal Robert Lowe
- RE: problem using WSDL2Java on RPC/Literal Anne Thomas Manes
- RE: problem using WSDL2Java on RPC/Literal Anne Thomas Manes
- Re: problem using WSDL2Java on RPC/Literal Junaid . Bhatra
- RE: problem using WSDL2Java on RPC/Literal Wei Hsu
- RE: problem using WSDL2Java on RPC/Literal Wei Hsu
- RE: problem using WSDL2Java on RPC/Literal Anne Thomas Manes
- Anne Thomas Manes