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:[EMAIL PROTECTED]</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>



Anne Thomas Manes wrote:

Can you show use your soap messages?

-----Original Message-----
From: Hector Flores [mailto:[EMAIL PROTECTED] Sent: Saturday, August 28, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: Re: swaRef URI initialization "Whats the right WSDL for MIME"


Yes. It is defined as you suggested.
I am using Cape Clear SOA editor, and the wsdl validates. I am also using apache axis 1.2 beta 2 to generate server side and client side stubs (with tomcat 5.0.19).
I will attach wsdl, and my client.


Thanks for your help Ann. I always take time to read yours and dims responses. Thanks for posting to this list.


Thanks, (hector) Raul

Anne Thomas Manes wrote:



Did you define an element in your types section called "ClaimDetail"?

It should be defined as:

<xsd:element name="ClaimDetail" type="types:ClaimDetailType"/>

Anne

------------------------------------------------------------------------

*From:* Hector Flores [mailto:[EMAIL PROTECTED]
*Sent:* Friday, August 27, 2004 5:51 PM
*To:* Axis Users Group
*Subject:* swaRef URI initialization "Whats the right WSDL for MIME"

I am trying to do attachments via the recent AP 1.0 SwA profile but need some help in creating the URI object.
Not sure what to do here.


I am using the wsdl for doc/literal which was previously posted on this site for "What's the right WSDL for MIME" (also found in the AP 1.0)

          <xsd:complexType name="ClaimDetailType">

              <xsd:sequence>

                  <xsd:element name="Name" type="xsd:string"/>

                  <xsd:element name="ClaimForm" type="ref:swaRef"/>

              </xsd:sequence>

          </xsd:complexType>



  <wsdl:message name="ClaimIn">

      <wsdl:part name="body" element="types:ClaimDetail"/>

      **<wsdl:part name="ClaimPhoto" type="xsd:base64Binary"/>**

  </wsdl:message>



Currently when I try and call the server I get an exception:



   [java] upload Test:

[java] Exception: org.xml.sax.SAXException: Invalid element in


com.lmtas.swa.services.ClaimDeta


ilType - ClaimDetail

   [java] AxisFault

[java] faultCode:


{http://schemas.xmlsoap.org/soap/envelope/}Server.userException


   [java]  faultSubcode:

[java] faultString: org.xml.sax.SAXException: Invalid element in


com.lmtas.swa.services.ClaimD


etailType - ClaimDetail

   [java]  faultActor:

   [java]  faultNode:

   [java]  faultDetail:

   [java]     {http://xml.apache.org/axis/}hostname:raul



[java] org.xml.sax.SAXException: Invalid element in


com.lmtas.swa.services.ClaimDetailType - Cl


aimDetail

[java] at


org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
23)


[java] at


org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13
0)


[java] at


org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onCon


textImpl.java:1060)

[java] at


org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)


[java] at


org.apache.crimson.parser.Parser2.content(Parser2.java:1963)


[java] at


org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)


[java] at


org.apache.crimson.parser.Parser2.content(Parser2.java:1963)


[java] at


org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)


[java] at


org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)


[java] at


org.apache.crimson.parser.Parser2.parse(Parser2.java:337)


[java] at


org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)


   [java]     at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)

[java] at


org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textI


mpl.java:218)

[java] at


org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:646)


[java] at


org.apache.axis.Message.getSOAPEnvelope(Message.java:424)


[java] at


org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChe
cker.


java:62)

[java] at


org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)


   [java]     at org.apache.axis.client.Call.invokeEngine(Call.java:2735)

   [java]     at org.apache.axis.client.Call.invoke(Call.java:2718)

   [java]     at org.apache.axis.client.Call.invoke(Call.java:2394)

   [java]     at org.apache.axis.client.Call.invoke(Call.java:2317)

   [java]     at org.apache.axis.client.Call.invoke(Call.java:1774)

[java] at


com.lmtas.swa.client.SWAServiceBindingStub.sendClaim(SWAServiceBindingStub.j
ava:1


60)

   [java]     at swaClientTest.main(swaClientTest.java:39)











Reply via email to