I have the following WSDL that takes in attachments and when I run it through the Client Generator, I get the following error:
Buildfile: C:\Documents and Settings\myuser\My Documents\workspace.rewrite\RtvDemo\build.xml generateWebService: [wsgen] Resovling. Base: null, URI: C:\tibco\projects\MyClients\Concrete\UploadWithAttachmentServiceConcrete.wsdl [wsgen] Mar 23, 2007 2:55:45 PM org.codehaus.xfire.gen.Wsdl11Generator generate [wsgen] INFO: Generating code for WSDL at file:/C:/tibco/projects/MyClients/Concrete/UploadWithAttachmentServiceConcrete.wsdl with a base URI of file:/C:/tibco/projects/MyClients/Concrete/UploadWithAttachmentServiceConcrete.wsdl BUILD FAILED C:\Documents and Settings\myuser\My Documents\workspace.rewrite\RtvDemo\build.xml:124: java.lang.NullPointerException Total time: 6 seconds Here is the WSDL: <?xml version="1.0" encoding="UTF-8"?> <!--Created by TIBCO WSDL--> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ <http://schemas.xmlsoap.org/wsdl/> " xmlns:tns="http://xmlns.example.com/1172758360539/UploadWithAttachmentImpl <http://xmlns.example.com/1172758360539/UploadWithAttachmentImpl> " xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/ <http://schemas.xmlsoap.org/wsdl/soap/> " xmlns:ns0="http://ws-i.org/profiles/basic/1.1/xsd <http://ws-i.org/profiles/basic/1.1/xsd> " xmlns:xs="http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> " xmlns:ns1="http://www.myclient.com/uploadDemo <http://www.myclient.com/uploadDemo> " name="Untitled" targetNamespace="http://xmlns.example.com/1172758360539/UploadWithAttachmentImpl <http://xmlns.example.com/1172758360539/UploadWithAttachmentImpl> "> <wsdl:types> <xs:schema xmlns="http://www.myclient.com/uploadDemo <http://www.myclient.com/uploadDemo> " xmlns:attach="http://ws-i.org/profiles/basic/1.1/xsd <http://ws-i.org/profiles/basic/1.1/xsd> " targetNamespace="http://www.myclient.com/uploadDemo <http://www.myclient.com/uploadDemo> " elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="additionalCharge"> <xs:complexType> <xs:sequence> <xs:element ref="ns1:code" minOccurs="0"/> <xs:element ref="ns1:cost" minOccurs="0"/> <xs:element ref="ns1:extendedCost" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="brand" type="xs:string"/> <xs:element name="cmCost"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="cmDate" type="xs:string"/> <xs:element name="cmExtCost"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="cmNumber" type="xs:string"/> <xs:element name="cmQuantity" type="xs:decimal"/> <xs:element name="code" type="xs:string"/> <xs:element name="cost"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="defTag" type="xs:string"/> <xs:element name="extendedCost"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="fileName" type="xs:string"/> <xs:element name="model" type="xs:string"/> <xs:element name="qtyReasonCode" type="xs:string"/> <xs:element name="row"> <xs:complexType> <xs:sequence> <xs:element ref="ns1:vendorNumber" minOccurs="0"/> <xs:element ref="ns1:rtvNumber" minOccurs="0"/> <xs:element ref="ns1:brand" minOccurs="0"/> <xs:element ref="ns1:model" minOccurs="0"/> <xs:element ref="ns1:rtvQuantity" minOccurs="0"/> <xs:element ref="ns1:rtvCost" minOccurs="0"/> <xs:element ref="ns1:rtvExtCost" minOccurs="0"/> <xs:element ref="ns1:cmNumber" minOccurs="0"/> <xs:element ref="ns1:cmDate" minOccurs="0"/> <xs:element ref="ns1:cmQuantity" minOccurs="0"/> <xs:element ref="ns1:cmCost" minOccurs="0"/> <xs:element ref="ns1:cmExtCost" minOccurs="0"/> <xs:element ref="ns1:unitOverShort" minOccurs="0"/> <xs:element ref="ns1:qtyReasonCode" minOccurs="0"/> <xs:element ref="ns1:defTag" minOccurs="0"/> <xs:element ref="ns1:additionalCharge" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="number" type="xs:integer"/> </xs:complexType> </xs:element> <xs:element name="rtvCost"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="rtvExtCost"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="rtvNumber"> <xs:simpleType> <xs:restriction base="xs:decimal"> <xs:totalDigits value="11"/> <xs:fractionDigits value="2"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="rtvQuantity" type="xs:decimal"/> <xs:element name="unitOverShort" type="xs:decimal"/> <xs:element name="vendorNumber" type="xs:string"/> <xs:element name="workbook"> <xs:complexType> <xs:sequence> <xs:element ref="ns1:row" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="name" type="xs:string"/> </xs:complexType> </xs:element> </xs:schema> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> " targetNamespace="http://ws-i.org/profiles/basic/1.1/xsd <http://ws-i.org/profiles/basic/1.1/xsd> " elementFormDefault="unqualified" attributeFormDefault="unqualified"> <xsd:simpleType name="swaRef"> <xsd:restriction base="xsd:anyURI"/> </xsd:simpleType> </xsd:schema> </wsdl:types> <wsdl:message name="AttachmentMessage"> <wsdl:part name="inputFile" type="ns0:swaRef"/> </wsdl:message> <wsdl:message name="OutputMessage"> <wsdl:part name="response" type="xs:string"/> </wsdl:message> <wsdl:message name="ExceptionMessage"> <wsdl:part name="errorMessage" type="xs:string"/> </wsdl:message> <wsdl:message name="FileInputMessage"> <wsdl:part name="fileName" element="ns1:fileName"/> </wsdl:message> <wsdl:portType name="UploadInterface"> <wsdl:operation name="UploadWithAttachment"> <wsdl:input message="tns:AttachmentMessage"/> <wsdl:output message="tns:OutputMessage"/> <wsdl:fault name="fault1" message="tns:ExceptionMessage"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="UploadWithAttachmentServiceBinding" type="tns:UploadInterface"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/ <http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="UploadWithAttachment"> <wsdl:documentation>The operation has no documentation</wsdl:documentation> <soap:operation style="document" soapAction="/Automation/UploadWithAttachmentService"/> <wsdl:input> <ns2:multipartRelated xmlns:ns2="http://schemas.xmlsoap.org/wsdl/mime/ <http://schemas.xmlsoap.org/wsdl/mime/> "> <ns2:part name="dummyName"> <soap:body use="literal" namespace="http://InputMessageNamespace <http://InputMessageNamespace> " parts="inputFile"/> </ns2:part> <ns2:part name="dummyName"> <ns2:content part="inputFile" type="*"/> </ns2:part> </ns2:multipartRelated> <soap:header use="literal" message="tns:FileInputMessage" part="fileName"/> </wsdl:input> <wsdl:output> <soap:body use="literal" namespace="http://OutputMessageNamespace <http://OutputMessageNamespace> " parts="response"/> </wsdl:output> <wsdl:fault name="ExceptionMessage"> <soap:fault use="literal" namespace="http://FaultMessageNamespace <http://FaultMessageNamespace> " name="fault1"/> </wsdl:fault> </wsdl:operation> </wsdl:binding> <wsdl:service name="UploadWithAttachmentService"> <wsdl:port name="UploadWithAttachmentServiceHttpPort" binding="tns:UploadWithAttachmentServiceBinding"> <soap:address location="http://TCM0705LKZYA9B:10090/Automation/UploadWithAttachmentService"/ <http://TCM0705LKZYA9B:10090/Automation/UploadWithAttachmentService"/> > </wsdl:port> </wsdl:service> </wsdl:definitions> Ron DiFrango
<<winmail.dat>>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
