You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by soap vamsi <so...@rediffmail.com> on 2002/05/14 15:05:01 UTC
soap encoding?
Can any one tell the significance of the encodingStyle attribute
where we give the
valuehttp://schemas.xmlsoap.org/soap/encoding/.
From all that i know this url must contain an xml doc that
contains the rules to marshall the soap request the soap xml.
Though I stated the above i am still not able to concieve what
that means when it is brought to the level of reality.
For Ex.
In the wsdl file i define a type as
<xsd:complexType name="phone">
<xsd:all>
<xsd:element name="areaCode" type="xsd:int"/>
<xsd:element name="exchange" type="xsd:string"/>
<xsd:element name="number" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
assuming that phone is the only part of my input message , in the
binding i specify
<input>
<soap:body use="encoded"
namespace="urn:AddressFetcher"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
for the message.
What is the significance of this encoding when i have already
expressed my input type as XML.
I have made an earnest effort the articulate my issue.Pl lemme
know if it is still not clear
thanx in advance
vamsi
_________________________________________________________
Click below to visit monsterindia.com and review jobs in India or
Abroad
http://monsterindia.rediff.com/jobs
Interoperability problem Apache Soap 2.2 ---> MS WS
Posted by Christian Lacetera <Ch...@IntesaBci.it>.
Hello, im' wrote a client for MS WebServices
the request is like this
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
*<xsi:Autenticate
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmln:xsi="something">*
<SiteName xsi:type="xsd:string">xxx</SiteName>
<UserName xsi:type="xsd:string">xxxx</UserName>
<Encrypted xsi:type="xsd:string">PLAIN</Encrypted>
<Password xsi:type="xsd:string">utente1</Password>
*</xsi:Autenticate>*
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
but this don't work
the correct one is
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
* <Autenticate
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">*
<SiteName xsi:type="xsd:string">xxx</SiteName>
<UserName xsi:type="xsd:string">xxxx</UserName>
<Encrypted xsi:type="xsd:string">PLAIN</Encrypted>
<Password xsi:type="xsd:string">utente1</Password>
* </Autenticate>*
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
the difference is <xsi:Autenticate
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmln:xsi="something">
<Autenticate
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
There's a way to create the right one With Apache SOAP 2.2 ??
Regards
Interoperability problem Apache Soap 2.2 ---> MS WS
Posted by Christian Lacetera <Ch...@IntesaBci.it>.
Hello, im' wrote a client for MS WebServices
the request is like this
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
*<xsi:Autenticate
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmln:xsi="something">*
<SiteName xsi:type="xsd:string">xxx</SiteName>
<UserName xsi:type="xsd:string">xxxx</UserName>
<Encrypted xsi:type="xsd:string">PLAIN</Encrypted>
<Password xsi:type="xsd:string">utente1</Password>
*</xsi:Autenticate>*
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
but this don't work
the correct one is
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
* <Autenticate
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">*
<SiteName xsi:type="xsd:string">xxx</SiteName>
<UserName xsi:type="xsd:string">xxxx</UserName>
<Encrypted xsi:type="xsd:string">PLAIN</Encrypted>
<Password xsi:type="xsd:string">utente1</Password>
* </Autenticate>*
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
the difference is <xsi:Autenticate
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmln:xsi="something">
<Autenticate
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
There's a way to create the right one With Apache SOAP 2.2 ??
Regards
Re: soap encoding?
Posted by Indrasish N Basuroychowdhury <in...@fanniemae.com>.
I have to send some information via. SOAP header. Anyone has similar experience? If
yes, can someone help me in this regard.
Thanks,
Indrasish.
Scott Nichol wrote:
> The SOAP spec says a little bit about this, e.g. see the 1.2 working draft at
> http://www.w3.org/TR/2001/WD-soap12-part0-20011217/#L3374. WSDL (see 1.1 at
> http://www.w3.org/TR/wsdl#_soap-b) also provides a means to specify encoding.
> Apache SOAP supports "standard" SOAP encoding, denoted by the
> http://schemas.xmlsoap.org/soap/encoding/ URI, as well as XMI encoding
> http://www.ibm.com/namespaces/xmi and literal XML
> http://xml.apache.org/xml-soap/literalxml. The address book example's
> GetAllListings method returns the listings using literal XML. Basically, using
> literal XML the sender of a message sends some XML fragment which the receiver
> must interpret. It's very useful if you already have data in XML format. With
> Apache SOAP, just read the XML into a DOM and specify an element of the DOM as a
> parameter.
>
> I do not know whether the XMI encoding will find widespread use, but since .NET
> does both SOAP (aka rpc/encoded) and literal XML (document/literal), I think
> both of those will be quite popular.
>
> Scott Nichol
>
> ----- Original Message -----
> From: "soap vamsi" <so...@rediffmail.com>
> To: <so...@xml.apache.org>
> Sent: Tuesday, May 14, 2002 9:05 AM
> Subject: soap encoding?
>
> > Can any one tell the significance of the encodingStyle attribute
> > where we give the
> > valuehttp://schemas.xmlsoap.org/soap/encoding/.
> > From all that i know this url must contain an xml doc that
> > contains the rules to marshall the soap request the soap xml.
> > Though I stated the above i am still not able to concieve what
> > that means when it is brought to the level of reality.
> >
> > For Ex.
> > In the wsdl file i define a type as
> > <xsd:complexType name="phone">
> > <xsd:all>
> > <xsd:element name="areaCode" type="xsd:int"/>
> > <xsd:element name="exchange" type="xsd:string"/>
> > <xsd:element name="number" type="xsd:string"/>
> > </xsd:all>
> > </xsd:complexType>
> >
> > assuming that phone is the only part of my input message , in the
> > binding i specify
> > <input>
> > <soap:body use="encoded"
> > namespace="urn:AddressFetcher"
> >
> > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> > </input>
> >
> > for the message.
> > What is the significance of this encoding when i have already
> > expressed my input type as XML.
> >
> > I have made an earnest effort the articulate my issue.Pl lemme
> > know if it is still not clear
> > thanx in advance
> > vamsi
> > _________________________________________________________
> > Click below to visit monsterindia.com and review jobs in India or
> > Abroad
> > http://monsterindia.rediff.com/jobs
> >
> >
Re: soap encoding?
Posted by Indrasish N Basuroychowdhury <in...@fanniemae.com>.
I have to send some information via. SOAP header. Anyone has similar experience? If
yes, can someone help me in this regard.
Thanks,
Indrasish.
Scott Nichol wrote:
> The SOAP spec says a little bit about this, e.g. see the 1.2 working draft at
> http://www.w3.org/TR/2001/WD-soap12-part0-20011217/#L3374. WSDL (see 1.1 at
> http://www.w3.org/TR/wsdl#_soap-b) also provides a means to specify encoding.
> Apache SOAP supports "standard" SOAP encoding, denoted by the
> http://schemas.xmlsoap.org/soap/encoding/ URI, as well as XMI encoding
> http://www.ibm.com/namespaces/xmi and literal XML
> http://xml.apache.org/xml-soap/literalxml. The address book example's
> GetAllListings method returns the listings using literal XML. Basically, using
> literal XML the sender of a message sends some XML fragment which the receiver
> must interpret. It's very useful if you already have data in XML format. With
> Apache SOAP, just read the XML into a DOM and specify an element of the DOM as a
> parameter.
>
> I do not know whether the XMI encoding will find widespread use, but since .NET
> does both SOAP (aka rpc/encoded) and literal XML (document/literal), I think
> both of those will be quite popular.
>
> Scott Nichol
>
> ----- Original Message -----
> From: "soap vamsi" <so...@rediffmail.com>
> To: <so...@xml.apache.org>
> Sent: Tuesday, May 14, 2002 9:05 AM
> Subject: soap encoding?
>
> > Can any one tell the significance of the encodingStyle attribute
> > where we give the
> > valuehttp://schemas.xmlsoap.org/soap/encoding/.
> > From all that i know this url must contain an xml doc that
> > contains the rules to marshall the soap request the soap xml.
> > Though I stated the above i am still not able to concieve what
> > that means when it is brought to the level of reality.
> >
> > For Ex.
> > In the wsdl file i define a type as
> > <xsd:complexType name="phone">
> > <xsd:all>
> > <xsd:element name="areaCode" type="xsd:int"/>
> > <xsd:element name="exchange" type="xsd:string"/>
> > <xsd:element name="number" type="xsd:string"/>
> > </xsd:all>
> > </xsd:complexType>
> >
> > assuming that phone is the only part of my input message , in the
> > binding i specify
> > <input>
> > <soap:body use="encoded"
> > namespace="urn:AddressFetcher"
> >
> > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> > </input>
> >
> > for the message.
> > What is the significance of this encoding when i have already
> > expressed my input type as XML.
> >
> > I have made an earnest effort the articulate my issue.Pl lemme
> > know if it is still not clear
> > thanx in advance
> > vamsi
> > _________________________________________________________
> > Click below to visit monsterindia.com and review jobs in India or
> > Abroad
> > http://monsterindia.rediff.com/jobs
> >
> >
Re: soap encoding?
Posted by Scott Nichol <sn...@scottnichol.com>.
The SOAP spec says a little bit about this, e.g. see the 1.2 working draft at
http://www.w3.org/TR/2001/WD-soap12-part0-20011217/#L3374. WSDL (see 1.1 at
http://www.w3.org/TR/wsdl#_soap-b) also provides a means to specify encoding.
Apache SOAP supports "standard" SOAP encoding, denoted by the
http://schemas.xmlsoap.org/soap/encoding/ URI, as well as XMI encoding
http://www.ibm.com/namespaces/xmi and literal XML
http://xml.apache.org/xml-soap/literalxml. The address book example's
GetAllListings method returns the listings using literal XML. Basically, using
literal XML the sender of a message sends some XML fragment which the receiver
must interpret. It's very useful if you already have data in XML format. With
Apache SOAP, just read the XML into a DOM and specify an element of the DOM as a
parameter.
I do not know whether the XMI encoding will find widespread use, but since .NET
does both SOAP (aka rpc/encoded) and literal XML (document/literal), I think
both of those will be quite popular.
Scott Nichol
----- Original Message -----
From: "soap vamsi" <so...@rediffmail.com>
To: <so...@xml.apache.org>
Sent: Tuesday, May 14, 2002 9:05 AM
Subject: soap encoding?
> Can any one tell the significance of the encodingStyle attribute
> where we give the
> valuehttp://schemas.xmlsoap.org/soap/encoding/.
> From all that i know this url must contain an xml doc that
> contains the rules to marshall the soap request the soap xml.
> Though I stated the above i am still not able to concieve what
> that means when it is brought to the level of reality.
>
> For Ex.
> In the wsdl file i define a type as
> <xsd:complexType name="phone">
> <xsd:all>
> <xsd:element name="areaCode" type="xsd:int"/>
> <xsd:element name="exchange" type="xsd:string"/>
> <xsd:element name="number" type="xsd:string"/>
> </xsd:all>
> </xsd:complexType>
>
> assuming that phone is the only part of my input message , in the
> binding i specify
> <input>
> <soap:body use="encoded"
> namespace="urn:AddressFetcher"
>
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> </input>
>
> for the message.
> What is the significance of this encoding when i have already
> expressed my input type as XML.
>
> I have made an earnest effort the articulate my issue.Pl lemme
> know if it is still not clear
> thanx in advance
> vamsi
> _________________________________________________________
> Click below to visit monsterindia.com and review jobs in India or
> Abroad
> http://monsterindia.rediff.com/jobs
>
>
Re: soap encoding?
Posted by Scott Nichol <sn...@scottnichol.com>.
The SOAP spec says a little bit about this, e.g. see the 1.2 working draft at
http://www.w3.org/TR/2001/WD-soap12-part0-20011217/#L3374. WSDL (see 1.1 at
http://www.w3.org/TR/wsdl#_soap-b) also provides a means to specify encoding.
Apache SOAP supports "standard" SOAP encoding, denoted by the
http://schemas.xmlsoap.org/soap/encoding/ URI, as well as XMI encoding
http://www.ibm.com/namespaces/xmi and literal XML
http://xml.apache.org/xml-soap/literalxml. The address book example's
GetAllListings method returns the listings using literal XML. Basically, using
literal XML the sender of a message sends some XML fragment which the receiver
must interpret. It's very useful if you already have data in XML format. With
Apache SOAP, just read the XML into a DOM and specify an element of the DOM as a
parameter.
I do not know whether the XMI encoding will find widespread use, but since .NET
does both SOAP (aka rpc/encoded) and literal XML (document/literal), I think
both of those will be quite popular.
Scott Nichol
----- Original Message -----
From: "soap vamsi" <so...@rediffmail.com>
To: <so...@xml.apache.org>
Sent: Tuesday, May 14, 2002 9:05 AM
Subject: soap encoding?
> Can any one tell the significance of the encodingStyle attribute
> where we give the
> valuehttp://schemas.xmlsoap.org/soap/encoding/.
> From all that i know this url must contain an xml doc that
> contains the rules to marshall the soap request the soap xml.
> Though I stated the above i am still not able to concieve what
> that means when it is brought to the level of reality.
>
> For Ex.
> In the wsdl file i define a type as
> <xsd:complexType name="phone">
> <xsd:all>
> <xsd:element name="areaCode" type="xsd:int"/>
> <xsd:element name="exchange" type="xsd:string"/>
> <xsd:element name="number" type="xsd:string"/>
> </xsd:all>
> </xsd:complexType>
>
> assuming that phone is the only part of my input message , in the
> binding i specify
> <input>
> <soap:body use="encoded"
> namespace="urn:AddressFetcher"
>
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> </input>
>
> for the message.
> What is the significance of this encoding when i have already
> expressed my input type as XML.
>
> I have made an earnest effort the articulate my issue.Pl lemme
> know if it is still not clear
> thanx in advance
> vamsi
> _________________________________________________________
> Click below to visit monsterindia.com and review jobs in India or
> Abroad
> http://monsterindia.rediff.com/jobs
>
>