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