You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Gus Delgado <gu...@netquotient.com> on 2001/08/01 14:54:07 UTC

encodingStyles

Can I use two different encodingStyles (Constants.NS_URI_SOAP_ENC and
Constants.NS_URI_LITERAL_XML)?

I'm currently using NS_URI_LITERAL_XML because I'm only sending XML messages
from client to server, but now I also want to send an attachment with the
XML message and from the mime example I see that it uses the NS_URI_SOAP_ENC
so I was wondering,

Could I use both and if I could, how? and if I could not, then what would my
options be?

Thanks a lot for your help in advanced.

Gus Delgado


RE: encodingStyles

Posted by Gus Delgado <gu...@netquotient.com>.
Question about encoding Styles.
Does NS_URI_LITERAL_XML only allows you to send and receive pure xml like:
<soap-env>
<soap-body>
  <my-tag>
	<my-other-tag>value</my-other-tag>
  </my-tag>
</soap-body>
</soap-env>

...And NS_URI_SOAP_ENC only allows you to send and receive objects like
Element or String or DataSource, etc.

I really need some help with this, so if anyone has the answer to my
question I would appreciated it very much. Thanks.

Gus

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Wednesday, August 01, 2001 9:03 AM
To: soap-user@xml.apache.org
Subject: RE: encodingStyles


more than one for the result

-----Original Message-----
From: Tom Myers [mailto:tommyers@dreamscape.com]
Sent: Wednesday, August 01, 2001 8:51 AM
To: soap-user@xml.apache.org
Cc: soap-user@xml.apache.org
Subject: Re: encodingStyles


At 07:54 AM 8/1/2001 -0500, Gus Delgado wrote:
>Can I use two different encodingStyles (Constants.NS_URI_SOAP_ENC and
>Constants.NS_URI_LITERAL_XML)?

The Parameter constructor is
>public Parameter(java.lang.String name,
>                  java.lang.Class type,
>                  java.lang.Object value,
>                  java.lang.String encodingStyleURI)
(from the javadoc)

Did you want to use more than one per parameter, or more
than one for the result? Or am I just confused as usual?

Tom Myers


RE: encodingStyles

Posted by Gus Delgado <gu...@netquotient.com>.
Question about encoding Styles.
Does NS_URI_LITERAL_XML only allows you to send and receive pure xml like:
<soap-env>
<soap-body>
  <my-tag>
	<my-other-tag>value</my-other-tag>
  </my-tag>
</soap-body>
</soap-env>

...And NS_URI_SOAP_ENC only allows you to send and receive objects like
Element or String or DataSource, etc.

I really need some help with this, so if anyone has the answer to my
question I would appreciated it very much. Thanks.

Gus

-----Original Message-----
From: Gus Delgado [mailto:gus.delgado@netquotient.com]
Sent: Wednesday, August 01, 2001 9:03 AM
To: soap-user@xml.apache.org
Subject: RE: encodingStyles


more than one for the result

-----Original Message-----
From: Tom Myers [mailto:tommyers@dreamscape.com]
Sent: Wednesday, August 01, 2001 8:51 AM
To: soap-user@xml.apache.org
Cc: soap-user@xml.apache.org
Subject: Re: encodingStyles


At 07:54 AM 8/1/2001 -0500, Gus Delgado wrote:
>Can I use two different encodingStyles (Constants.NS_URI_SOAP_ENC and
>Constants.NS_URI_LITERAL_XML)?

The Parameter constructor is
>public Parameter(java.lang.String name,
>                  java.lang.Class type,
>                  java.lang.Object value,
>                  java.lang.String encodingStyleURI)
(from the javadoc)

Did you want to use more than one per parameter, or more
than one for the result? Or am I just confused as usual?

Tom Myers


RE: encodingStyles

Posted by Gus Delgado <gu...@netquotient.com>.
more than one for the result

-----Original Message-----
From: Tom Myers [mailto:tommyers@dreamscape.com]
Sent: Wednesday, August 01, 2001 8:51 AM
To: soap-user@xml.apache.org
Cc: soap-user@xml.apache.org
Subject: Re: encodingStyles


At 07:54 AM 8/1/2001 -0500, Gus Delgado wrote:
>Can I use two different encodingStyles (Constants.NS_URI_SOAP_ENC and
>Constants.NS_URI_LITERAL_XML)?

The Parameter constructor is
>public Parameter(java.lang.String name,
>                  java.lang.Class type,
>                  java.lang.Object value,
>                  java.lang.String encodingStyleURI)
(from the javadoc)

Did you want to use more than one per parameter, or more
than one for the result? Or am I just confused as usual?

Tom Myers

RE: encodingStyles

Posted by Gus Delgado <gu...@netquotient.com>.
more than one for the result

-----Original Message-----
From: Tom Myers [mailto:tommyers@dreamscape.com]
Sent: Wednesday, August 01, 2001 8:51 AM
To: soap-user@xml.apache.org
Cc: soap-user@xml.apache.org
Subject: Re: encodingStyles


At 07:54 AM 8/1/2001 -0500, Gus Delgado wrote:
>Can I use two different encodingStyles (Constants.NS_URI_SOAP_ENC and
>Constants.NS_URI_LITERAL_XML)?

The Parameter constructor is
>public Parameter(java.lang.String name,
>                  java.lang.Class type,
>                  java.lang.Object value,
>                  java.lang.String encodingStyleURI)
(from the javadoc)

Did you want to use more than one per parameter, or more
than one for the result? Or am I just confused as usual?

Tom Myers

Re: encodingStyles

Posted by Tom Myers <to...@dreamscape.com>.
At 07:54 AM 8/1/2001 -0500, Gus Delgado wrote:
>Can I use two different encodingStyles (Constants.NS_URI_SOAP_ENC and
>Constants.NS_URI_LITERAL_XML)?

The Parameter constructor is
>public Parameter(java.lang.String name,
>                  java.lang.Class type,
>                  java.lang.Object value,
>                  java.lang.String encodingStyleURI)
(from the javadoc)

Did you want to use more than one per parameter, or more
than one for the result? Or am I just confused as usual?

Tom Myers


Re: encodingStyles

Posted by Tom Myers <to...@dreamscape.com>.
At 07:54 AM 8/1/2001 -0500, Gus Delgado wrote:
>Can I use two different encodingStyles (Constants.NS_URI_SOAP_ENC and
>Constants.NS_URI_LITERAL_XML)?

The Parameter constructor is
>public Parameter(java.lang.String name,
>                  java.lang.Class type,
>                  java.lang.Object value,
>                  java.lang.String encodingStyleURI)
(from the javadoc)

Did you want to use more than one per parameter, or more
than one for the result? Or am I just confused as usual?

Tom Myers