× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I thought I knew, but maybe I don't...I'm trying to create a WSDL that can
be imported into Websphere Commerce. The Websphere Commerce system will use
that definition to consume a web service that I will create with RPG-XML. I
need to have a proper and correct WSDL so the Websphere Commerce system
generates the right Java code. I've created WSDLs where I had simple
elements, but I'm trying to have groups of elements. The WSDL is not
correct (as per Altova XML Spy and as per SoapUI). I have this as part of
the WSDL:

<xsd:complexType name="ShoppingCartOperationResponse">
<xsd:sequence>
<xsd:element name="EchoInput" type="EchoInputType"
minOccurs="1" maxOccurs="20"/>
<xsd:element name="SKUPromo" type="SKUPromoType"
minOccurs="0" maxOccurs="20"/>
<xsd:element name="Delivery" type="DeliveryType"
minOccurs="0" maxOccurs="1"/>
<xsd:element name="CPU" type="CPUType" minOccurs="0"
maxOccurs="5"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EchoInputType">
<xsd:sequence>
<xsd:element name="inSKU" type="xsd:string"></xsd:element>
<xsd:element name="inQuantity" type="xsd:string"></xsd:element>
<xsd:element name="inFloor" type="xsd:string"></xsd:element>
<xsd:element name="inPromoNum1" type="xsd:string"></xsd:element>
<xsd:element name="inPromoNum2" type="xsd:string"></xsd:element>
<xsd:element name="inZip" type="xsd:string"></xsd:element>
<xsd:element name="inCity" type="xsd:string"></xsd:element>
<xsd:element name="inState" type="xsd:string"></xsd:element>
<xsd:element name="inStore" type="xsd:string"></xsd:element>
<xsd:element name="outErrMsg" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>

I thought I could define EchoInput as type=EchoInputType, and then define
EchoInputType as a complexType with the element definition. When I try
that, I get this in Altova XML Spy:

Invalid XML schema: ''EchoInputType' must refer to an existing simple or
complex type.'

Any ideas as to how I can do this? Thanks!

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.