I have to deploy a web service for that have to work with a created  web service client.

 

This web service have to read information from soap-header, ando f course from soap-body, and both have all the tags namespace prefixed.

 

Read the client callo n the server wan not dificult using javax.xml.mesagging MessageContext, SOAPEnvelope, etc.

 

 

My question is how can i response to create a response to the client that have soap-header, and use namespace prefix for all the elements.

 

Is message style my option???

 

This is an example of my response:

 

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="

    http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

      - <soapenv:Header>

        - <myheader:MyHeader xmlns:myheader ="http://www.myserver.com/">

            <myheader:command>PQR</myheader:command>

        </myheader:MyHeader>

      </soapenv:Header>     

    </soapenv:Envelope>

            .

            .          

            .

            .

            .

            .

 

 

Enrique Rodriguez Lasterra

NHT-Norwick

Tel: +34 902 22 88 77

e-Mail: [EMAIL PROTECTED]

Este mensaje va dirigido sólo al destinatario del mismo y puede contener información privilegiada, de propiedad intelectual o cualquier otro tipo de datos de carácter privado. Si lo ha recibido por error, notifíqueselo inmediatamente al emisario y borre el original. Está prohibido cualquier otro empleo de este e-mail por su parte.

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

 

Reply via email to