Hi,

   I have a WSDL with the following definition of an operation (I'm pasting
only the relevant parts):

         <xsd:element name="TransformRequest">
               <xsd:annotation>
                   <xsd:documentation>Solicitud de
transformacion</xsd:documentation>
               </xsd:annotation>
               <xsd:complexType>
                   <xsd:sequence>
                       <xsd:element name="documentToTransform"
type="xsd:integer">
                           <xsd:annotation>
                               <xsd:documentation>Documento a
transformar</xsd:documentation>
                           </xsd:annotation>
                       </xsd:element>
                   </xsd:sequence>
               </xsd:complexType>
           </xsd:element>


<wsdl:message name="TransformRequest">
       <wsdl:part name="TransformRequest" element="tns:TransformRequest"/>
   </wsdl:message>

<wsdl:operation name="Transform">
           <wsdl:input wsa:Action="
http://test.net/testing/services/TransformationService/Transform";
name="TransformRequest" message="tns:TransformRequest"/>
           <wsdl:output wsa:Action="
http://test.net/testing/services/TransformationService/TransformResponse";
name="TransformResponse" message="tns:TransformResponse"/>
           <wsdl:fault name="TransformFailedFault"
message="tns:TransformFailedFault"/>
           <wsdl:fault name="ResourceUnknownFault"
message="tns:ResourceUnknownFault"/>
           <wsdl:fault name="ResourceUnavailableFault"
message="tns:ResourceUnavailableFault"/>
       </wsdl:operation>


I want this WSDL to represent an operation named    void Transform (byte[])
using base64 as the mechanism for encoding binary data. When I execute
wsdl2java for generating the server part of the service, it generates the
following code:

   public void transform(Element documentToTransform) throws Exception    {
       //TODO implement transform
       throw new RuntimeException("Unimplemented Method: transform");
   }


I want Apache Muse to generate a prototype like this:    public void
transform(byte[] documentToTransform) throws Exception or anything that
treats the received base64 as an array of bytes. Somewhere in the
documentation it is said that Apache Muse uses Element as a rerpresentation
of a parameter when the element has AnyType or void types...

Does anybody knows how to get a service that has an capability that gets a
byte[] as parameter?

Greets,

Reply via email to