You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "massimo.zanette" <ma...@infocamere.it> on 2010/02/25 14:19:27 UTC

characters before body

Hi,
i'm using an axis 2 client that build this http request:


POST /comunica-cuil-ws/servizi/ws HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: ""

User-Agent: Axis2

Authorization: Basic d3NpbmFpbDp3c2ljbjAw

Host: pdrisv.intra.infocamere.it:52080

Transfer-Encoding: chunked



217

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns6:RichiestaVerificaIscrizione
xmlns:ns6="http://www.registroimprese.it/comunicazioneunica"><VerificaIscrizione
xmlns="http://inail.it/comunica/portale/VerificaIscrizione.xsd"><utenzaDichiarante>CVZSFN73T06H223H</utenzaDichiarante><codicefiscaleDitta>01535320509</codicefiscaleDitta><tipoUtente>Titolare</tipoUtente></VerificaIscrizione></ns6:RichiestaVerificaIscrizione></soapenv:Body></soapenv:Envelope>

0



I don't know if this is an axis issue...but does someone why there are
characters 217 before the soap envelope?
Thank you

--

Massimo

-- 
View this message in context: http://old.nabble.com/characters-before-body-tp27714422p27714422.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: [Axis2] Schema validation with ADB

Posted by "T. Allen" <bi...@verizon.net>.
Can you provide a few more details in your answer?  That may help cut 
down on the follow-up questions.
What do you mean by "validate against it" in your reply?  How do you 
validate?
And what is not 100% accurate?

Thanks.


Amila Suriarachchi wrote:
>
>
> On Sat, Jun 12, 2010 at 9:32 PM, Jack Sprat <rexclaimer2@yahoo.com 
> <ma...@yahoo.com>> wrote:
>
>     What do you mean when you say validates the inbound request?  I
>     can see the "unexpected subelement" message when a request is
>     received that does not conform to the schema.  I would not call
>     that valdiation.  I want to be able to return the actual error
>     messages from the parser, similar to the #validate() method in
>     XMLBeans.
>     Is this possible?
>
>
> No. ADB data model is generated from the schema so validate against it 
> equals to validates against schema. However this is not 100% accurate.
>
> thanks,
> Amila.
>
>      
>     The only alternative I can see is to pull out the body and send
>     that through a parser, which is not ideal.
>      
>     Thanks,
>     J
>
>     --- On *Sat, 6/12/10, Amila Suriarachchi
>     /<amilasuriarachchi@gmail.com
>     <ma...@gmail.com>>/* wrote:
>
>
>         From: Amila Suriarachchi <amilasuriarachchi@gmail.com
>         <ma...@gmail.com>>
>         Subject: Re: [Axis2] Schema validation with ADB
>         To: java-user@axis.apache.org <ma...@axis.apache.org>
>         Cc: axis-user@ws.apache.org <ma...@ws.apache.org>
>         Date: Saturday, June 12, 2010, 1:38 AM
>
>
>
>
>         On Thu, Jun 10, 2010 at 1:40 AM, Jack Sprat
>         <rexclaimer2@yahoo.com
>         <ht...@yahoo.com>>
>         wrote:
>
>             Is there a simple way to perform schema validation when
>             using ADB?  Examples would be quite helpful.
>             I know this is simple with XMLBeans but have a service
>             using ADB where I need to validate the inbound request.
>
>
>         ADB validates the incoming request while parsing the request.
>
>         thanks,
>         Amila.
>
>              
>             Thanks.
>             J
>              
>
>
> <http://amilachinthaka.blogspot.com/>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: [Axis2] Schema validation with ADB

Posted by Amila Suriarachchi <am...@gmail.com>.
On Sat, Jun 12, 2010 at 9:32 PM, Jack Sprat <re...@yahoo.com> wrote:

> What do you mean when you say validates the inbound request?  I can see the
> "unexpected subelement" message when a request is received that does not
> conform to the schema.  I would not call that valdiation.  I want to be able
> to return the actual error messages from the parser, similar to the
> #validate() method in XMLBeans.
> Is this possible?
>

No. ADB data model is generated from the schema so validate against it
equals to validates against schema. However this is not 100% accurate.

thanks,
Amila.

>
> The only alternative I can see is to pull out the body and send that
> through a parser, which is not ideal.
>
> Thanks,
> J
>
> --- On *Sat, 6/12/10, Amila Suriarachchi <am...@gmail.com>*wrote:
>
>
> From: Amila Suriarachchi <am...@gmail.com>
> Subject: Re: [Axis2] Schema validation with ADB
> To: java-user@axis.apache.org
> Cc: axis-user@ws.apache.org
> Date: Saturday, June 12, 2010, 1:38 AM
>
>
>
>
> On Thu, Jun 10, 2010 at 1:40 AM, Jack Sprat <re...@yahoo.com>
> > wrote:
>
>>   Is there a simple way to perform schema validation when using ADB?
>> Examples would be quite helpful.
>> I know this is simple with XMLBeans but have a service using ADB where I
>> need to validate the inbound request.
>>
>
> ADB validates the incoming request while parsing the request.
>
> thanks,
> Amila.
>
>>
>> Thanks.
>> J
>>
>>
>>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Re: [Axis2] Schema validation with ADB

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Amila Suriarachchi wrote:
>
>
> On Thu, Jun 10, 2010 at 1:40 AM, Jack Sprat <rexclaimer2@yahoo.com 
> <ma...@yahoo.com>> wrote:
>
>     Is there a simple way to perform schema validation when using
>     ADB?  Examples would be quite helpful.
>     I know this is simple with XMLBeans but have a service using ADB
>     where I need to validate the inbound request.
>
>
> ADB validates the incoming request while parsing the request.
>

Hi Amila,

Do you really mean that ADB validates the incoming request, or that it 
checks consistency with the ADB data model? Unless ADB actually turns on 
schema validation by the parser (which I very much doubt) it's not 
correct to say that it validates the request.

I did write a handler for this purpose a while ago. I haven't tried it 
out with the current code, but I'll attach the files to this email in 
case the gastrically-challenged questioner wants to give it a try.

  - Dennis

-- 
Dennis M. Sosnoski
Java XML and Web Services
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117


Re: [Axis2] Schema validation with ADB

Posted by Jack Sprat <re...@yahoo.com>.
What do you mean when you say validates the inbound request?  I can see the "unexpected subelement" message when a request is received that does not conform to the schema.  I would not call that valdiation.  I want to be able to return the actual error messages from the parser, similar to the #validate() method in XMLBeans.
Is this possible?
 
The only alternative I can see is to pull out the body and send that through a parser, which is not ideal.
 
Thanks,
J

--- On Sat, 6/12/10, Amila Suriarachchi <am...@gmail.com> wrote:


From: Amila Suriarachchi <am...@gmail.com>
Subject: Re: [Axis2] Schema validation with ADB
To: java-user@axis.apache.org
Cc: axis-user@ws.apache.org
Date: Saturday, June 12, 2010, 1:38 AM





On Thu, Jun 10, 2010 at 1:40 AM, Jack Sprat <re...@yahoo.com> wrote:






Is there a simple way to perform schema validation when using ADB?  Examples would be quite helpful.
I know this is simple with XMLBeans but have a service using ADB where I need to validate the inbound request.

ADB validates the incoming request while parsing the request.

thanks,
Amila. 






 
Thanks.
J
 



      

Re: [Axis2] Schema validation with ADB

Posted by Amila Suriarachchi <am...@gmail.com>.
On Thu, Jun 10, 2010 at 1:40 AM, Jack Sprat <re...@yahoo.com> wrote:

> Is there a simple way to perform schema validation when using ADB?
> Examples would be quite helpful.
> I know this is simple with XMLBeans but have a service using ADB where I
> need to validate the inbound request.
>

ADB validates the incoming request while parsing the request.

thanks,
Amila.

>
> Thanks.
> J
>
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

[Axis2] Schema validation with ADB

Posted by Jack Sprat <re...@yahoo.com>.
Is there a simple way to perform schema validation when using ADB?  Examples would be quite helpful.
I know this is simple with XMLBeans but have a service using ADB where I need to validate the inbound request.
 
Thanks.
J
 


      

RE: characters before body

Posted by "Caristi, Joe" <jc...@whisolutions.com>.
This is a result of using the default "chunked" transfer encoding.  You can turn it off if necessary.  Look here for a basic explanation:

http://en.wikipedia.org/wiki/Chunked_transfer_encoding


-----Original Message-----
From: massimo.zanette [mailto:massimo.zanette@infocamere.it]
Sent: Thursday, February 25, 2010 8:19 AM
To: axis-user@ws.apache.org
Subject: characters before body


Hi,
i'm using an axis 2 client that build this http request:


POST /comunica-cuil-ws/servizi/ws HTTP/1.1

Content-Type: text/xml; charset=UTF-8

SOAPAction: ""

User-Agent: Axis2

Authorization: Basic d3NpbmFpbDp3c2ljbjAw

Host: pdrisv.intra.infocamere.it:52080

Transfer-Encoding: chunked



217

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns6:RichiestaVerificaIscrizione
xmlns:ns6="http://www.registroimprese.it/comunicazioneunica"><VerificaIscrizione
xmlns="http://inail.it/comunica/portale/VerificaIscrizione.xsd"><utenzaDichiarante>CVZSFN73T06H223H</utenzaDichiarante><codicefiscaleDitta>01535320509</codicefiscaleDitta><tipoUtente>Titolare</tipoUtente></VerificaIscrizione></ns6:RichiestaVerificaIscrizione></soapenv:Body></soapenv:Envelope>

0



I don't know if this is an axis issue...but does someone why there are
characters 217 before the soap envelope?
Thank you

--

Massimo

--
View this message in context: http://old.nabble.com/characters-before-body-tp27714422p27714422.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


STATEMENT OF CONFIDENTIALITY:



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at gc@whisolutions.com,
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org