Well its a bit mixed what im doing since I am stuck with java 1.4 in
the production environment. I have generated code from my wsdl and
then removed all the java 5 stuff from the code. So its almost the
same as doing interface first. So anyway, at this point the interface
doesnt match my wsdl excatly anymore.

And in the two examples you can see what is the difference between a
correct request, and with a request that my service understands. So
now I was hoping to be able to map the correct request with aegis so
that the service would understand it. But I dont quite now how to use
the aegis binding since the documentation is quite slim. I was hoping
someone could provide and example based on the two requests that I
sent. With that example i propably could take care of all the
operations, since they all share the same problem.

-Tero

On 3/28/07, Øyvind Matheson Wergeland <[EMAIL PROTECTED]> wrote:
Hi Tero,

Are you doing interface first development? In that case, you have to configure 
Aegis with mapping files, or use a different binding, e.g. JAXB 2.0: 
http://xfire.codehaus.org/JAXB+2.0

 -Øyvind

-----Opprinnelig melding-----
Fra: Tero Kivisaari [mailto:[EMAIL PROTECTED]
Sendt: on 28.03.2007 14:48
Til: [email protected]
Emne: [xfire-user] How to use Aegis to understand an incoming request

Could some one show me an simple example of using the Aegis binding.
First here is an example of what my services expects, and below that
is what my client sends.

This is what my server understands:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<soap:Body>
   <userInfo xmlns="http://tempuri.org";>
      <in0>
         <fileType xmlns="http://model.tempuri.org";></fileType>
         <fileSet xmlns="http://model.tempuri.org";></fileSet>
      </in0>
   </userInfo>
 </soap:Body>
</soap:Envelope>

But this is what my client sends:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:cor="http://tempuri.org/FileService";
xmlns:mod="http://model.tempuri.org/";>
 <soapenv:Header/>
 <soapenv:Body>
   <cor:userInfoRequestElement>
      <mod:fileSet>?</mod:fileSet>
      <mod:fileType>?</mod:fileType>
   </cor:userInfoRequestElement>
 </soapenv:Body>
</soapenv:Envelope>

Is it possible to use aegis to bind that request from the client to this method:
        public UserInfoResponse userInfo(UserInfoRequest parameters)
throws MyFault;

If someone could give me an example I would be very happy.

Cheers,
Tero

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to