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 jegan vijayarajan <vj...@yahoo.com> on 2004/06/10 18:08:54 UTC

Soap Attributes, header details transfer...

Hello,

I have problems in Web Service implementation. The axis users recommendations will help�

 

1. We are building Web Service output (SAOP XML) as per the below for external clients. In the below structure, in DateRange node, the format of the date is defined as attributes. How to achieve the same in Web Service?

-- The Body content of SOAP XML

                                <Equipment>

                                                <serialNumber>AKD001234</serialNumber>

                                                <manufacturer>CAT</manufacturer>

                                                <dealerManufacturer>AA</dealerManufacturer>

                                                <model>model</model>

                                                <dealershipCode>dealershipCode</dealershipCode>

                                                <dateRange>

                                                                <fromDate format=�mm/dd/yyyy�>05/01/2004</fromDate>

                                                                <toDate format=�mm/dd/yyyy�>05/01/2004</toDate>

                                                </dateRange>

                                </Equipment>

2. Our app. have handlers like AuthenticationHandler, RegistrationKeyHandler to validate the header contents. After the validation is done, we need the header information available to some of the internal implementation classes (in implementation classes). The question is how this information can be transferred?

3. The below is the sample of our header information (UserName, Password and Registration Key). Are there tools (like JAVA2WSDL) to automatically build WSDL with the header information (or) manually? 

                  <soap:Header>

                                    <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext">

                                          <wsse:UsernameToken>

                                                            <wsse:Username>id1</wsse:Username>

                                                            <wsse:Password>xxx</wsse:Password>

                                          </wsse:UsernameToken>

                                          <ds:KeyInfo>

                                                            <ds:KeyValue>abc-123-xyz</ds:KeyValue>

                                          </ds:KeyInfo>

                                    </wsse:Security>

                  </soap:Header>

 

Thanks,
Jegan Vijayarajan

		
---------------------------------
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger