Hi,

I am trying to talk to a Web Service for which no WSDL file is being
provided. The company who are providing the Web Service
have given me a Word document with the structure of the SOAP
requests/responses - they are running Perl SOAP::Lite and from some 
research on the web it looks like it may not be that easy to autogenerate a
WSDL file using SOAP::Lite
(http://search.cpan.org/author/PDENIS/WSDL-Generator-0.02/
http://mail.pm.org/pipermail/boston-pm/2002-October/000225.html)
In any case they tell me they won't be providing a WSDL file in this
release...

So, unfortunately I don't think I can use WSDL2Java (I am running AXIS 1.1
for the client).

I've taken a look at an example shipped with AXIS that doesn't assume a WSDL
file...
~samples/jaxrpc/GetQuote1.java

So I'm fine about connecting to the Web Service...
My confusion lies in how to formulate the request (it's not as trivial as
the samples..)

The request I have to generate needs to be in the following format :

--- Request ---

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
 <SOAP-ENV:Body>
  <namesp1: GetUpdatedCustomer xmlns:namesp1="http://example/other";>
   <GetUpdatedCustomer>
    <CustomerService>
        <ServiceName xsi:type="xsd:string">xyservice</ServiceName>
        <ServiceToken xsi:type="xsd:string">32byteMD5hash</ServiceToken>
        <CountryCode xsi:type="xsd:string">cc</CountryCode>
        <LanguageCode xsi:type="xsd:string">cc</LanguageCode>
        <Timestamp xsi:type="xsd:string">dd.mm.yyyy hh:mm:ss</Timestamp>
     </CustomerService>
        <Date xsi:type="xsd:string">dd.mm.yyyy</Date>
   </GetUpdatedCustomer>
  </namesp1: GetUpdatedCustomer>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Qs:
Am I correct in progressing as follows ?
- Create a java object named CustomerService with attributes
{ServiceName,ServiceToken,CountryCode,LanguageCode,Timestamp }
- Create a java object named Date with 1 attribute (string with actual date
of interest)
- call.addParameter("CustomerService",XMLType.SOAP_ELEMENT ?,
customerServiceObj ,ParameterMode.IN)
call.addParameter("Date",XMLType.SOAP_ELEMENT ?,dateObj,ParameterMode.IN)

Not sure which XMLType to use...

Any pointers would be appreciated greatly !
Thanks in advance,
Irial




>       Irial Conroy
>       Software Engineer 
>       Am-Beo Ltd.
>       +353 91 731 814    Direct
>       +353 91 730 737    Office
>       +353 91 751 002    Fax
                www.am-beo.com
>       ------------------------------
>       This message may contain proprietary and valuable information of
> Am-Beo. Am-Beo asserts its copyright to any proprietary information that
> may have been supplied and the proscription of third party disclosure of
> any such proprietary information.
> 
> 

Reply via email to