users@jax-rpc.java.net

Re: JAX_RPC_ISSUE

From: badal garg <badalgarg_at_gmail.com>
Date: Wed, 29 Dec 2004 19:29:57 -0500

Please find the wsdl attached. Thanks a lot for your help !!

Badal Garg


On Wed, 29 Dec 2004 15:50:38 -0500, Anne Thomas Manes <atmanes_at_gmail.com> wrote:
> Can you provide us with the WSDL file?
>
> A few things I notice:
> #3 uses literal encoding, but #4 uses SOAP encoding.
> #3 namespace qualifies all elements, which implies that it uses
> document style. I assume that #4 uses RPC style because it uses SOAP
> encoding. BUT, #4 does not namespace qualify the child element of the
> <env:Body> element, which is illegal. I don't believe that you can
> produce a SOAP message using JAX-RPC in which the child element of the
> <env:Body> element is not namespace qualified.
>
> If you cannot modify the service so that it accepts a namespace
> qualified element, then I suggest you manually construct the SOAP
> message using SAAJ. Alternatively, you can implement a handler that
> transforms the SOAP message into the specific format you require.
>
> It should not make any difference whether you use the "env" or
> "SOAP-ENV" prefix name.
>
> Anne
>
>
> On Tue, 28 Dec 2004 13:28:41 -0500, badal garg <badalgarg_at_gmail.com> wrote:
> > Hi all,
> >
> > I am working on Web Services. I am using JAX-RPC for Client code
> > generation from WSDL.
> >
> > Here is the information:
> >
> > 1. Command for code generation:
> >
> > wscompile.bat -keep -s C:\Portal\src -gen:client C:\Portal\wsdl\conf.xml
> >
> > 2. Client code used:
> > public class PSClient {
> >
> > public static void main(String[] args) {
> > try
> > {
> >
> > DEPTCIService_Impl ws = new DEPTCIService_Impl();
> > DEPTSoap deptSOAP = ws.getDEPTSoap();
> >
> > DEPT_TBL[] deptTbl = deptSOAP.get__CompIntfc__DEPT("ABCD", "99431");
> >
> > System.out.println("Got the results from: " + deptTbl);
> >
> > } catch (Exception ex) {
> > ex.printStackTrace();
> > }
> > }
> > }
> >
> > 3. The message generated:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
> > xmlns:ns0="http://psfttemp.org">
> > <env:Body>
> > <ns0:Get__CompIntfc__DEPT>
> > <ns0:SETID>CVSUS</ns0:SETID>
> > <ns0:DEPTID>99431</ns0:DEPTID>
> > </ns0:Get__CompIntfc__DEPT>
> > </env:Body>
> > </env:Envelope>
> >
> > 4. SOAP message required:
> >
> > <?xml version="1.0"?>
> > <SOAP-ENV:Envelope
> > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <SOAP-ENV:Body>
> > <GET__CompIntfc__DEPT>
> > <SETID>abcid</SETID>
> > <DEPTID>99430</DEPTID>
> > </GET__CompIntfc__DEPT>
> > </SOAP-ENV:Body>
> > </SOAP-ENV:Envelope>
> >
> > Please let me know if you have worked with JAX-PRC, how I can get the
> > required SOAP request (as in 4) from the JAX-RPC generated code?
> >
> > Please help.
> >
> > Thanks,
> > BG
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> > For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net