Kurt and I took a look. It looks to stem from
uddi-ws/src/main/java/org/uddi/api_v3/OverviewDoc.java :
@XmlType(name = "overviewDoc", propOrder = {
"overviewURL", "description"
})
For some reason this is working in JBoss when using jbossws - which is
where Kurt saw it succeed yesterday, but not in the bundle when using
CXF. I've logged https://issues.apache.org/jira/browse/JUDDI-490 on
it and I'll get it in tonight so that it goes into juddi-3.1.0 which
should go up for a vote in the next couple days.
If you can build trunk tomorrow once I get this in and verify that it is
working for you there it would be much appreciated
(http://svn.apache.org/repos/asf/juddi/trunk/).
--Tom
On 06/02/2011 12:55 PM, Sanghavi, Sonia wrote:
Hey Kurt,
Thanks for the response. I too tried the same request in SOAPUI and
it errors out :
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'overviewURL'. One of
'{"urn:uddi-org:api_v3":description}' is expected.</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
I am currently using juddi portal bundle 3.0.4. I am pointing to the
service hosted on my local machine( http://[host]/
juddiv3/services/publish?wsdl) . When I view the contents of the wsdl
file, I can see that the schema definition for overviewDoc is
<xs:complexType name="overviewDoc">
<xs:sequence>
<xs:element minOccurs="0" name="overviewURL" type="tns:overviewURL"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="description"
type="tns:description"/>
</xs:sequence>
</xs:complexType>
Which is different from the Oasis spec :
<xsd:complexType name="overviewDoc" final="restriction">
<xsd:choice>
<xsd:sequence>
<xsd:element ref="uddi:description" maxOccurs="unbounded"/>
<xsd:element ref="uddi:overviewURL" minOccurs="0"/>
</xsd:sequence>
<xsd:element ref="uddi:overviewURL"/>
</xsd:choice>
Is there another version if juddi I should be using.
Thanks
Sonia Sanghavi
Hi Sonia,
When I use SoapUI, the following request works just fine:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:uddi-org:api_v3"
xmlns:xd="http://www.w3.org/2000/09/xmldsig#">
<soapenv:Header/>
<soapenv:Body>
<urn:save_service>
<!--Optional:-->
<urn:authInfo>authtoken:d1b9795d-b44a-4291-8387-c34b2ed73800</urn:authInfo>
<!--1 or more repetitions:-->
<urn:businessService
serviceKey="uddi:juddi.apache.org:myExampleServicewithOwnIDSigned"
businessKey="uddi:juddi.apache.org:businesses-asf">
<!--Zero or more repetitions:-->
<urn:name>myExampleServicewithOwnID2</urn:name>
<!--Zero or more repetitions:-->
<urn:description >Service Definition Text</urn:description>
<bindingTemplates xmlns="urn:uddi-org:api_v3">
<bindingTemplate>
<accessPoint>http://www.fgm.com/endpoint1</accessPoint>
<tModelInstanceDetails>
<tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http">
<description>uddi:uddi.org:transport:http</description>
</tModelInstanceInfo>
<tModelInstanceInfo
tModelKey="uddi:juddi.apache.org:CES:SD:tModels:1.1:serviceSchemaFile">
<instanceDetails>
<overviewDoc>
<description>myExampleService schema</description>
<overviewURL useType="XML
Schema">https://cypher.fgm.com/mdr/ns/myschema1.xsd</overviewURL>
</overviewDoc>
</instanceDetails>
</tModelInstanceInfo>
</tModelInstanceDetails>
</bindingTemplate>
</bindingTemplates>
</urn:businessService>
</urn:save_service>
</soapenv:Body>
</soapenv:Envelope>
So I'm not sure how this can be a problem in jUDDI.
--Kurt
On 5/31/11 3:58 PM, Sanghavi, Sonia wrote:
>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> <http://schemas.xmlsoap.org/soap/envelope/>
> xmlns:urn="urn:uddi-org:api_v3"
> xmlns:xd="http://www.w3.org/2000/09/xmldsig#"
> <http://www.w3.org/2000/09/xmldsig>>
>
> <soapenv:Header/>
>
> <soapenv:Body>
>
> <urn:save_service>
>
> <!--Optional:-->
>
> <urn:authInfo>authtoken:e24463f7-20ad-4372-a68f-d2b26d6382e1</urn:authInfo>
>
>
> <!--1 or more repetitions:-->
>
> <urn:businessService
> serviceKey="uddi:metadata.dod.mil:myExampleServicewithOwnIDSigned"
> businessKey="uddi:juddi.apache.org:a49f060d-d976-4937-9abe-3f45388763f2">
>
> <!--Zero or more repetitions:-->
>
> <urn:name xml:lang="?">myExampleServicewithOwnID2</urn:name>
>
> <!--Zero or more repetitions:-->
>
> <urn:description xml:lang="?">Service Definition Text</urn:description>
>
> <bindingTemplates xmlns="urn:uddi-org:api_v3">
>
> <bindingTemplate>
>
> <accessPoint>http://www.fgm.com/endpoint1</accessPoint>
>
> <tModelInstanceDetails>
>
> <tModelInstanceInfo tModelKey="uddi:uddi.org:transport:http">
>
> <description>uddi:uddi.org:transport:http</description>
>
> </tModelInstanceInfo>
>
> <tModelInstanceInfo
> tModelKey="uddi:metadata.dod.mil:CES:SD:tModels:1.1:serviceSchemaFile">
>
> <instanceDetails>
>
> <overviewDoc>
>
> <description>myExampleService schema</description>
>
> <overviewURL useType="XML
> Schema">https://cypher.fgm.com/mdr/ns/myschema1.xsd</overviewURL>
>
> </overviewDoc>
>
> </instanceDetails>
>
> </tModelInstanceInfo>
>
> </tModelInstanceDetails>
>
> </bindingTemplate>
>
> </bindingTemplates>
>
> </urn:businessService>
>
> </urn:save_service>
>
> </soapenv:Body>
>
> </soapenv:Envelope>
>