Senthivel,
I don't know how to do that.
Sorry.
-jeff

  _____  

        From: Senthivel U S [mailto:[EMAIL PROTECTED]

        Sent: Tuesday, October 16, 2007 2:52 AM
        To: [email protected]
        Subject: RE: sending calendar object in axis stub
        
        

        Hi Jeff,

         

        Thanks for your clue. I have sorted out the issue. Now I am
trying to sign. Please throw me some light how to engage the security
modules only for created stub. I have tried this, but it gives the
error, "Security token not found".

         

        My code:

         

        URL endPointURL = new URL("http:// ");

        EngineConfiguration config = new FileProvider("services.xml");

        Service service = new Service();

        DefaultSoapStub stub = new DefaultSoapStub(endPointURL,
service);

         

         

        Service.xml is

         

        <service name="Default" scope="application">

                    <description>

                                Testing

                    </description>

            

            <parameter name="OutflowSecurity">

              <action>

                <items>Timestamp</items>

        
<encryptionPropFile>service.properties</encryptionPropFile>

        
<encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>

                <encryptionUser>useReqSigCert</encryptionUser>

                                <user>client</user>

        
<signaturePropFile>service.properties</signaturePropFile>

        
<passwordCallbackClass>com.unistream.client.ServiceSecurityHandler</pass
wordCallbackClass>              

        
<signatureParts>{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-2
00401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Element}{http://schemas.
xmlsoap.org/soap/envelope/}Body</signatureParts>

             <!--
<optimizeParts>//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue</op
timizeParts> -->

              </action>

            </parameter>

        </service>         

         

        TIA,

        -senthil

         

        
  _____  


        From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
        Sent: Monday, October 15, 2007 6:32 PM
        To: [email protected]
        Subject: RE: sending calendar object in axis stub

         

        Hi Senthil,

        shame on them for writing a language-specific web serivce!

         

        Anyway, if they are the authors of the web service and you are
the client, then you must have gotten the wsdl from them. The wsdl must
have a complexType in it that declares the issuedDate as non-nillable.
But I can't tell why the line
"transfer.setIssueDate(Calendar.getInstance());" failed.

        You'll have to debug it and step through slowly at this point to
see if the instance returned from Calendar.getInstance() is null or not.
(If it is not null, then it is getting nulled out later before the stub
attempts to serialize everything).

        This is my guess.

        -jeff

         

        
  _____  


        From: Senthivel U S [mailto:[EMAIL PROTECTED]

        Sent: Monday, October 15, 2007 9:38 AM
        To: [email protected]
        Subject: RE: sending calendar object in axis stub

                Hi Jeff,

                 

                Thanks for your comments and I do agree with you. The
service was deployed by third party and I want to consume the service. I
have created my stub using wsdl (Eclipse IDE).

                 

                TIA,

                -senthil

                 

                 

                
  _____  


                From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
                Sent: Monday, October 15, 2007 5:08 PM
                To: [email protected]
                Subject: RE: sending calendar object in axis stub

                 

                Hi Senthil,

                Don't pass language specific constructs like Calendar,
in a web service call.

                 

                You are better taking the less obvious route; just pass
the minimal amount number fo fields in the Calendar object that can be
used by a client to regenerate the equivalent object on their side. That
is, build a new complexType in XML Schema and use Doc/Lit-wrapped web
services.

                 

                The main reason is simply, interoperability. Even of you
know all of your clients will be Java going forward, it's bad practice
to pass language specific objects in a web service. If indeed all of
your clients will always be Java, then you would benefit from RMI or EJB
where you would get a significant speed increase. Web Services is for
interoperability across disparate systems.

                Regards,

                -jeff

                 

                
  _____  


                From: Senthivel U S
[mailto:[EMAIL PROTECTED] 
                Sent: Monday, October 15, 2007 8:27 AM
                To: [email protected]
                Subject: sending calendar object in axis stub

                        Hi,

                         

                        I have a stub, in that I want to pass calendar
object, while passing I am getting the following error.  Is any
serializer to be included to pass calendar object.

                         

                        java.io.IOException: Non nillable element
'issuedDate' is null.

                                at
org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.jav
a:215)

                                at
org.apache.axis.encoding.SerializationContext.serializeActual(Serializat
ionContext.java:1502)

                         

                        My code is 

                         

                        transfer.setIssueDate(Calendar.getInstance());

                        stub.insertTransfer(transfer);

                         

                        TIA,

                        -senthil

                         

Reply via email to