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) >
