Sure. I've attached it.
Brian
Anne Thomas Manes wrote:
Can you provide the WSDL?
On 9/8/05, *Brian Bonner* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
I did more research and it looks like org.apache.axis.message.RPCParam
is generating the XSIType info. There's a method to turn this
generation on/off, but it looks like the Call class doesn't use it.
Is there anyway to turn this off or include the schema in the outer
element? Thanks.
Brian
Brian Bonner wrote:
> I also wonder why xsi:type="xsd:string"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance>" is being
> generated in the instance document that is being sent from the Stub.
> This doesn't need to be there. Is there a way to not have this be
> generated? Is there a WSDL2Java switch that I'm unaware of?
>
> Brian
>
>
>
> Brian Bonner wrote:
>
>> I used WSDL2Java to create a client of a Document/Literal Web
>> Service. When I use the generated Proxy to call the service, the
>> document that ends up being generated includes:
>> xsi:type="xsd:string"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance>"
>>
>> in the elements, however, xsd is not declared anywhere and
>> validation of the document at the server is failing. If I declare
>> the xsd namespace in either the root element or in each of the
>> elements where it's used, it succeeds. i.e.
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>
>> I've been searching for what is causing this. I noticed that
the ns1
>> namespace *IS* included in the Body tag below.
>>
>> Any thoughts?
>>
>> Here's the example:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <PriceandAvailabilityRequest
>>
xmlns="http://www.paraware.com/2005/PriceAndAvailabilityCheckRequest"
>> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
>>
xsi:schemaLocation="http://www.paraware.com/2005/PriceAndAvailabilityCheckRequest
<http://www.paraware.com/2005/PriceAndAvailabilityCheckRequest>
>> xsd/paraware/priceAndAvailabilityRequest.xsd ">
>> <Header>
>> <Reference>
>> <RefNum xsi:type="xsd:string"
>> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
<http://www.w3.org/2001/XMLSchema-instance%22>>T</RefNum>
>> <RefDate xsi:type="xsd:dateTime"
>> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
<http://www.w3.org/2001/XMLSchema-instance%22>>2005-09-08T13:20:27.375Z</RefDate>
>>
>> </Reference>
>> <SupplierID xsi:type="xsd:string"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<http://www.w3.org/2001/XMLSchema-instance%22>>383401</SupplierID>
>>
>> <BuyerParty>
>> <Identifier xsi:type="xsd:string"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<http://www.w3.org/2001/XMLSchema-instance%22>>383401</Identifier>
>>
>> <SecurityCode xsi:type="xsd:string"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<http://www.w3.org/2001/XMLSchema-instance%22>>parawarePA/parawarePA1</SecurityCode>
>>
>> <Name xsi:type="xsd:string"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<http://www.w3.org/2001/XMLSchema-instance%22>>OKI</Name>
>> <Zip xsi:type="xsd:string"
>> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
<http://www.w3.org/2001/XMLSchema-instance%22>>45215</Zip>
>> <Company xsi:type="xsd:string"
>> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
<http://www.w3.org/2001/XMLSchema-instance%22>>OKI</Company>
>> </BuyerParty>
>> </Header>
>> <Body xsi:type="ns1:Query"
>> xmlns:ns1="
http://www.paraware.com/2005/PriceAndAvailabilityCheckRequest"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> <Query>
>> <ManNum xsi:type="xsd:string">3M 1100</ManNum>
>> </Query>
>> </Body>
>> </PriceandAvailabilityRequest>
>>
>
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://selfservice.webservice.paraware.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://www.paraware.com/2005/PriceAndAvailabilityCheckRequest"
xmlns:ns2="http://www.paraware.com/2005/PriceAndAvailabilityCheckResponse"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://selfservice.webservice.paraware.com"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema
targetNamespace="http://www.paraware.com/2005/PriceAndAvailabilityCheckRequest"
elementFormDefault="qualified"
xmlns:pr="http://www.paraware.com/2005/PriceAndAvailabilityCheckRequest">
<xsd:element name="Body" type="pr:Query" />
<xsd:element name="BuyerPartNum" type="xsd:string" />
<xsd:element name="BuyerParty">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Identifier" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="pr:SecurityCode" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="pr:Name" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="pr:Zip" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="pr:Company" minOccurs="1"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Company" type="xsd:string"
nillable="false" />
<xsd:element name="Header">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Reference" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="pr:SupplierID" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="pr:BuyerParty" minOccurs="1"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Identifier" type="xsd:string"
nillable="false" />
<xsd:element name="Keywords" type="xsd:string" />
<xsd:element name="ManNum" type="xsd:string"
nillable="false" />
<xsd:element name="Name" type="xsd:string" />
<xsd:element name="PriceandAvailabilityRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Header" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="pr:Body" minOccurs="1"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Quantity" type="xsd:string"
nillable="true" />
<xsd:complexType name="Query">
<xsd:sequence>
<xsd:element ref="pr:Query" minOccurs="1"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="Query">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:BuyerPartNum" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="pr:UPC" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="pr:ManNum" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="pr:Keywords" minOccurs="0"
maxOccurs="1" />
<xsd:element ref="pr:Quantity" minOccurs="0"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RefDate" type="xsd:dateTime"
nillable="false" />
<xsd:element name="RefNum" type="xsd:string"
nillable="false" />
<xsd:element name="Reference" nillable="false">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:RefNum" minOccurs="1"
maxOccurs="1" />
<xsd:element ref="pr:RefDate" minOccurs="1"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="SecurityCode" type="xsd:string"
nillable="false" />
<xsd:element name="SupplierID" type="xsd:string"
nillable="false" />
<xsd:element name="UPC" type="xsd:string" />
<xsd:element name="Zip" type="xsd:string" />
</xsd:schema>
<xsd:schema
targetNamespace="http://www.paraware.com/2005/PriceAndAvailabilityCheckResponse"
elementFormDefault="qualified"
xsi:schemaLocation="http://www.paraware.com/2005/PriceAndAvailabilityCheckResponse file:/C:/workspace/supply_chain/xsd/paraware/priceAndAvailabilityResponse.xsd"
xmlns:pr="http://www.paraware.com/2005/PriceAndAvailabilityCheckResponse"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsd:element name="AvailQty" type="xsd:string" />
<xsd:element name="Body">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:ErrorMessage" />
<xsd:element ref="pr:WarehouseList" />
<xsd:element ref="pr:ListOfItemDetail" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Break-1">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Price" />
<xsd:element ref="pr:Qty" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Break-2">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Price" />
<xsd:element ref="pr:Qty" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Break-3">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Price" />
<xsd:element ref="pr:Qty" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Break-4">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Price" />
<xsd:element ref="pr:Qty" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Break-5">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Price" />
<xsd:element ref="pr:Qty" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Break-6">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Price" />
<xsd:element ref="pr:Qty" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="BuyerPartNumber" type="xsd:string" />
<xsd:element name="City" type="xsd:string" />
<xsd:element name="Count" type="xsd:string" />
<xsd:element name="Desc" type="xsd:string" />
<xsd:element name="ErrorMessage" type="xsd:string" />
<xsd:element name="HazardData" type="xsd:string" />
<xsd:element name="Header">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Reference" />
<xsd:element ref="pr:SupplierID" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Ident" type="xsd:string" />
<xsd:element name="ItemDetailList">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:ErrorMessage" />
<xsd:element ref="pr:PartNumbers" />
<xsd:element ref="pr:Desc" />
<xsd:element ref="pr:RepCost" />
<xsd:element ref="pr:ListPrice" />
<xsd:element ref="pr:MinPurchaseQty" />
<xsd:element ref="pr:HazardData" />
<xsd:element ref="pr:User1" />
<xsd:element ref="pr:User2" />
<xsd:element ref="pr:ItemURL" />
<xsd:element ref="pr:ManufactureDate" />
<xsd:element ref="pr:QtyInfo" />
<xsd:element ref="pr:UOM" />
<xsd:element ref="pr:Usage" />
<xsd:element ref="pr:PriceBreaks" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ItemURL" type="xsd:string" />
<xsd:element name="ListOfItemDetail">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded"
ref="pr:ItemDetailList" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ListPrice" type="xsd:string" />
<xsd:element name="LocationQty">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:WarehouseID" />
<xsd:element ref="pr:AvailQty" />
<xsd:element ref="pr:StockFlag" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ManufactureDate" type="xsd:string" />
<xsd:element name="Measure" type="xsd:string" />
<xsd:element name="MinPurchaseQty" type="xsd:string" />
<xsd:element name="Month" type="xsd:string" />
<xsd:element name="Name" type="xsd:string" />
<xsd:element name="NameAddress">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Name" />
<xsd:element ref="pr:PostalCode" />
<xsd:element ref="pr:City" />
<xsd:element ref="pr:State" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PartNumbers">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:BuyerPartNumber" />
<xsd:element ref="pr:SellerPartNumber" />
<xsd:element ref="pr:UPC" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PostalCode" type="xsd:string" />
<xsd:element name="Price" type="xsd:string" />
<xsd:element name="PriceBreaks">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Break-1" />
<xsd:element ref="pr:Break-2" />
<xsd:element ref="pr:Break-3" />
<xsd:element ref="pr:Break-4" />
<xsd:element ref="pr:Break-5" />
<xsd:element ref="pr:Break-6" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PriceandAvailabilityResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Header" />
<xsd:element ref="pr:Body" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Qty" type="xsd:string" />
<xsd:element name="QtyInfo">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded"
ref="pr:LocationQty" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RefDate" type="xsd:dateTime" />
<xsd:element name="RefNum" type="xsd:string" />
<xsd:element name="Reference">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:RefNum" />
<xsd:element ref="pr:RefDate" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RepCost" type="xsd:string" />
<xsd:element name="SellerPartNumber" type="xsd:string" />
<xsd:element name="State" type="xsd:string" />
<xsd:element name="StockFlag" type="xsd:string" />
<xsd:element name="SupplierID" type="xsd:string" />
<xsd:element name="UOM">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:UOM-1" />
<xsd:element ref="pr:UOM-2" />
<xsd:element ref="pr:UOM-3" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="UOM-1">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Measure" />
<xsd:element ref="pr:Count" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="UOM-2">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Measure" />
<xsd:element ref="pr:Count" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="UOM-3">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Measure" />
<xsd:element ref="pr:Count" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="UPC" type="xsd:string" />
<xsd:element name="Usage">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Month" />
<xsd:element ref="pr:Year" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="User1" type="xsd:string" />
<xsd:element name="User2" type="xsd:string" />
<xsd:element name="Warehouse">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="pr:Ident" />
<xsd:element ref="pr:NameAddress" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="WarehouseID" type="xsd:string" />
<xsd:element name="WarehouseList">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded"
ref="pr:Warehouse" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Year" type="xsd:string" />
</xsd:schema>
</wsdl:types>
<wsdl:message name="checkPriceAndAvailabilityRequest">
<wsdl:part element="ns1:PriceandAvailabilityRequest"
name="PriceandAvailabilityRequest" />
</wsdl:message>
<wsdl:message name="checkPriceAndAvailabilityResponse">
<wsdl:part element="ns2:PriceandAvailabilityResponse"
name="PriceandAvailabilityResponse" />
</wsdl:message>
<wsdl:portType name="SoapCustomerServicePortType">
<wsdl:operation name="checkPriceAndAvailability">
<wsdl:input message="tns:checkPriceAndAvailabilityRequest"
name="checkPriceAndAvailabilityRequest" />
<wsdl:output message="tns:checkPriceAndAvailabilityResponse"
name="checkPriceAndAvailabilityResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SoapCustomerServiceHttpBinding"
type="tns:SoapCustomerServicePortType">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="checkPriceAndAvailability">
<wsdlsoap:operation soapAction="" />
<wsdl:input name="checkPriceAndAvailabilityRequest">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="checkPriceAndAvailabilityResponse">
<wsdlsoap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SoapCustomerService">
<wsdl:port binding="tns:SoapCustomerServiceHttpBinding"
name="SoapCustomerServiceHttpPort">
<wsdlsoap:address
location="http://localhost:8080/paraware/SoapCustomerService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>