cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amit rathi (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-2273) How to parse the input request and ensure that it is as per the XSD ?
Date Tue, 09 Jun 2009 14:24:07 GMT
How to parse the input request and ensure that it is as per the XSD ?
---------------------------------------------------------------------

                 Key: CXF-2273
                 URL: https://issues.apache.org/jira/browse/CXF-2273
             Project: CXF
          Issue Type: Improvement
            Reporter: amit rathi
            Priority: Critical


Hi, 

We are using CXF2.1 for our web service development and facing one issue. We need to parse
the input request and ensure that it is as per the XSD, else need to throw customized exception.
Currently while using CXF2.1, inside the service class where we are writing the business logic,
inside the method we are directly getting the Value Object, which contains the value extracted
from input request. We need to get the complete input request so that we can parse it and
take necessary steps. Can someone please guide us how the same can be achieved?


This is the sample request 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:x20="http://soapheader.ibm.com/">

   <soapenv:Header> 
      <x20:aheader1>?</x20:aheader1> 
      <x20:bheader2>?</x20:bheader2> 
   </soapenv:Header> 
   <soapenv:Body> 
      <x20:crequest`> 
         <x20:dvar1> 
            <x20:evar2>as</x20:evar3> 
         </x20:dvar1> 
      </x20:crequest> 
   </soapenv:Body> 
</soapenv:Envelope> 

I want to read it as it is in my service class. 
But i am unable to read it. 
When I tried to read the request in my service class by ( requestObject or requestObject.toString
), it gives me the object name not the input request as it is. 

Please guide me on same. 

Thanks & regards 
Amit 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message