axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hector Flores <hector.flo...@verizon.net>
Subject Re: swaRef URI initialization "Whats the right WSDL for MIME"
Date Sun, 29 Aug 2004 03:19:53 GMT
Is this the right behavior? 
    I used cape clear to create a wsdl that performs an upload with an 
attachment (SwA - mime multipart in the binding)
    I used axis 1.2 beta 2 to create java classes to support the wsdl.
   
    I deploy the war and query axis for a wsdl listing
    the listing ( ...?wsdl ) does not contain any reference to the mime 
multipart in the binding section.

Am I doing something wrong? Any help is appreciated. Could this be why 
my client keeps getting an error:
    Exception: org.xml.sax.SAXException: Invalid element in 
com.lmtas.swa.services.ClaimDetailType - ClaimDetail

Raul

I have attached the orig wsdl, gen wsdl, and an ant build file.

Hector Flores wrote:

> The request:
> POST /swa/services/SWAServicePort HTTP/1.0
> Content-Type: multipart/related; type="text/xml"; 
> start="<33D7951A943F17FC2DC728F16EA9D6CD>";     
> boundary="----=_Part_0_5965416.1093722817593"
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> User-Agent: Axis/1.2beta
> Host: localhost:8080
> Cache-Control: no-cache
> Pragma: no-cache
> SOAPAction: "capeconnect:SWAService:SWAServicePortType#SendClaim"
> Content-Length: 3870
>
>
> ------=_Part_0_5965416.1093722817593
> Content-Type: text/xml; charset=UTF-8
> Content-Transfer-Encoding: binary
> Content-Id: <33D7951A943F17FC2DC728F16EA9D6CD>
>
> <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:Body><SendClaim

> xmlns=""><ns1:ClaimDetail 
> xmlns:ns1="http://com.lmtas.swa.services"><Name>Hello</Name><ClaimForm>cid:ClaimPhoto@lmtas.com</ClaimForm></ns1:ClaimDetail><ClaimPhoto

> href="cid:E9D0154BF9B055D53B4997D300D6637B" xsi:type="ns2:Image" 
> xmlns:ns2="http://xml.apache.org/xml-soap"/></SendClaim></soapenv:Body></soapenv:Envelope>

>
> ------=_Part_0_5965416.1093722817593
> Content-Type: image/jpeg
> Content-Transfer-Encoding: binary
> Content-Id: <E9D0154BF9B055D53B4997D300D6637B>
>
> ÿØÿà
>
>
> And the reply:
> HTTP/1.1 500 Internal Server Error
> Set-Cookie: JSESSIONID=78B56D28E2FD0EF313574710AC0535F5; Path=/swa
> Content-Type: text/xml;charset=utf-8
> Date: Sat, 28 Aug 2004 19:53:37 GMT
> Server: Apache-Coyote/1.1
> Connection: close
>
> <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:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException:

> Invalid element in com.lmtas.swa.services.ClaimDetailType - 
> ClaimDetail</faultstring><detail><ns1:hostname 
> xmlns:ns1="http://xml.apache.org/axis/">raul</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

>
>

Mime
View raw message