以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  关于wsdl映射到uddi的tModel的问题?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=72408)


--  作者:lixiaoming
--  发布时间:2/27/2009 9:36:00 PM

--  关于wsdl映射到uddi的tModel的问题?
各位,这里是我已经做好的一个web服务,并且已经成功的发布,这个是访问这个 wsdl文件的地址

http://localhost:8080/axis/services/Productoption?wsdl

这里是这个wsdl 的源码:

<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="urn:Productoption" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:Productoption" xmlns:intf="urn:Productoption" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://entity.oa.icss.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <!--
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)

  -->
- <wsdl:types>
- <schema targetNamespace="urn:Productoption" xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://entity.oa.icss.com" />
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="ArrayOf_xsd_anyType">
- <complexContent>
- <restriction base="soapenc:Array">
  <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]" />
  </restriction>
  </complexContent>
  </complexType>
  </schema>
- <schema targetNamespace="http://entity.oa.icss.com" xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="urn:Productoption" />
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="Product">
- <sequence>
  <element name="cnt" type="xsd:int" />
  <element name="ext" nillable="true" type="xsd:string" />
  <element name="pid" nillable="true" type="xsd:string" />
  <element name="pname" nillable="true" type="xsd:string" />
  <element name="price" type="xsd:double" />
  </sequence>
  </complexType>
  </schema>
  </wsdl:types>
- <wsdl:message name="getProductByIdResponse">
  <wsdl:part name="getProductByIdReturn" type="tns1:Product" />
  </wsdl:message>
- <wsdl:message name="getAllProductsResponse">
  <wsdl:part name="getAllProductsReturn" type="impl:ArrayOf_xsd_anyType" />
  </wsdl:message>
  <wsdl:message name="getAllProductsRequest" />
- <wsdl:message name="getProductByIdRequest">
  <wsdl:part name="in0" type="soapenc:string" />
  </wsdl:message>
- <wsdl:portType name="Productoption">
- <wsdl:operation name="getAllProducts">
  <wsdl:input message="impl:getAllProductsRequest" name="getAllProductsRequest" />
  <wsdl:output message="impl:getAllProductsResponse" name="getAllProductsResponse" />
  </wsdl:operation>
- <wsdl:operation name="getProductById" parameterOrder="in0">
  <wsdl:input message="impl:getProductByIdRequest" name="getProductByIdRequest" />
  <wsdl:output message="impl:getProductByIdResponse" name="getProductByIdResponse" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="ProductoptionSoapBinding" type="impl:Productoption">
  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="getAllProducts">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="getAllProductsRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Productoption" use="encoded" />
  </wsdl:input>
- <wsdl:output name="getAllProductsResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Productoption" use="encoded" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getProductById">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="getProductByIdRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Productoption" use="encoded" />
  </wsdl:input>
- <wsdl:output name="getProductByIdResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Productoption" use="encoded" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="ProductoptionService">
- <wsdl:port binding="impl:ProductoptionSoapBinding" name="Productoption">
  <wsdlsoap:address location="http://localhost:8080/axis/services/Productoption" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>
现在我想把他映射到uddi中的tModel上,并且接着映射到 businessService 上面。在映射tModel时,碰到问题:

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
    <save_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
      <authInfo>***</authInfo>
      <tModel tModelKey="">
        <name>[color=#FF0000]http://localhost:8080/axis/services/Productoption[/color]</name>
        <description>***</description>
        <overviewDoc>
          <description>***</description>
          <overviewURL>http://localhost:8080/axis/services/Productoption?wsdl#ProductoptionSoapBinding</overviewURL>
        </overviewDoc>
        <identifierBag>
          <keyedReference tModelKey="***" keyName="***" keyValue="***" />
        </identifierBag>
        <categoryBag>
          <keyedReference tModelKey="***" keyName="***" keyValue="***" />
        </categoryBag>
      </tModel>
    </save_tModel>
  </soapenv:Body>
</soapenv:Envelope>
在验证过程中提示需要categoryBag,和那个 <authInfo


--  作者:zhxiaomiao
--  发布时间:3/9/2009 4:58:00 PM

--  
楼主留个联系方式QQ  我也要做这块 能不能加你QQ向你请教啊
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.500ms