gpt4 book ai didi

web-services - 来自服务 WSDL 错误的 Worklight 应用程序框架数据对象

转载 作者:行者123 更新时间:2023-12-02 01:50:23 26 4
gpt4 key购买 nike

我想使用 Worklight V6.1 试用新的 Worklight Application Framework Editor。

我的服务是一个 SOAP Web 服务,我有该服务的 WSDL。我选择 WSDL 的服务类型并将 wsdl 文件(复制到本文底部的源代码窗口中)添加到对话框中。

然后我得到第一个错误:

Could not find element definition within schema for :{http://www.DFH0XCMN.DFH0XCP4.Response.com} DFH0XCMNOperationResponse

尽管出现此错误,但我似乎可以继续展开详细信息 View 以显示输入变量,但主要问题是 - 未检测到输出变量。这意味着如果我遵循指南:

http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/09_09_Creating_an_application_with_IBM_Worklight_Application_Framework.pdf

当涉及到将 GUI 对象绑定(bind)到服务对象时,我没有响应变量来在两者之间划线 - 这意味着我无法将其进行到底。

请告知我的 WSDL 有什么问题,这意味着无法找到架构 - 以及为什么在向导中未检测到输出变量。如果我们可以手动更改 WSDL 以使其工作 - 那么我也会对这些更改的内容感兴趣。

WSDL xml如下:

<?xml version="1.0" ?>
<!--
<copyright
notice="cics-lm-source-program"
pids="5655-Y04"
years="2009,2013"
crc="3891213381" >


Licensed Materials - Property of IBM

5655-Y04

(C) Copyright IBM Corp. 2009, 2013 All Rights Reserved.

US Government Users Restricted Rights - Use, duplication or
disclosure restricted by GSA ADP Schedule Contract with
IBM Corp.

@{[**]copyright.years=2009, 2013}


</copyright>
-->
<definitions targetNamespace="http://www.DFH0XCMN.DFH0XCP4.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:reqns="http://www.DFH0XCMN.DFH0XCP4.Request.com" xmlns:resns="http://www.DFH0XCMN.DFH0XCP4.Response.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.DFH0XCMN.DFH0XCP4.com">
<types>
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://www.DFH0XCMN.DFH0XCP4.Request.com" xmlns:tns="http://www.DFH0XCMN.DFH0XCP4.Request.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType abstract="false" block="#all" final="#all" mixed="false" name="ProgramInterface">
<xsd:annotation>
<xsd:documentation source="http://www.ibm.com/software/htp/cics/annotations">This schema was generated for use with CICS.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="ca_request_id" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:40 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_return_code" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:40 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="99"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_response_message" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:40 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="79"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_inquire_single" nillable="false">
<xsd:complexType mixed="false">
<xsd:sequence>
<xsd:element name="ca_item_ref_req" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:41 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="9999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="filler1" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:41 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="filler2" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:41 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_single_item" nillable="false">
<xsd:complexType mixed="false">
<xsd:sequence>
<xsd:element name="ca_sngl_item_ref" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:42 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="9999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_sngl_description" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:43 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_sngl_department" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:45 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_sngl_cost" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:46 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="in_sngl_stock" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:48 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="9999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="on_sngl_order" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:50 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="DFH0XCMNOperation" nillable="false" type="tns:ProgramInterface"/>
</xsd:schema>
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://www.DFH0XCMN.DFH0XCP4.Response.com" xmlns:tns="http://www.DFH0XCMN.DFH0XCP4.Response.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType abstract="false" block="#all" final="#all" mixed="false" name="ProgramInterface">
<xsd:annotation>
<xsd:documentation source="http://www.ibm.com/software/htp/cics/annotations">This schema was generated for use with CICS.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="ca_request_id" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:58 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_return_code" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:58 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="99"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_response_message" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:58 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="79"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_inquire_single" nillable="false">
<xsd:complexType mixed="false">
<xsd:sequence>
<xsd:element name="ca_item_ref_req" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:58 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="9999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="filler1" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:58 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="filler2" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:58 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_single_item" nillable="false">
<xsd:complexType mixed="false">
<xsd:sequence>
<xsd:element name="ca_sngl_item_ref" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:59 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="9999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_sngl_description" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:59 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_sngl_department" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:27:59 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ca_sngl_cost" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:28:00 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="in_sngl_stock" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:28:00 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="9999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="on_sngl_order" nillable="false">
<xsd:simpleType>
<xsd:annotation>
<xsd:appinfo source="http://www.ibm.com/software/htp/cics/annotations">#Wed Sep 14 08:28:01 BST 2005
com.ibm.cics.wsdl.properties.synchronized=false
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedShort">
<xsd:maxInclusive value="999"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="DFH0XCMNOperationResponse" nillable="false" type="tns:ProgramInterface"/>
</xsd:schema>
</types>
<message name="DFH0XCMNOperationResponse">
<part element="resns:DFH0XCMNOperationResponse" name="ResponsePart"/>
</message>
<message name="DFH0XCMNOperationRequest">
<part element="reqns:DFH0XCMNOperation" name="RequestPart"/>
</message>
<portType name="DFH0XCMNPort">
<operation name="DFH0XCMNOperation">
<input message="tns:DFH0XCMNOperationRequest" name="DFH0XCMNOperationRequest"/>
<output message="tns:DFH0XCMNOperationResponse" name="DFH0XCMNOperationResponse"/>
</operation>
</portType>
<binding name="DFH0XCMNHTTPSoapBinding" type="tns:DFH0XCMNPort">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="DFH0XCMNOperation">
<soap:operation soapAction="" style="document"/>
<input name="DFH0XCMNOperationRequest">
<soap:body parts="RequestPart" use="literal"/>
</input>
<output name="DFH0XCMNOperationResponse">
<soap:body parts="ResponsePart" use="literal"/>
</output>
</operation>
</binding>
<service name="DFH0XCMNService">
<port binding="tns:DFH0XCMNHTTPSoapBinding" name="DFH0XCMNPort">
<soap:address location="http://my-server:my-port/exampleApp/inquireSingle"/>
</port>
</service>
</definitions>

最佳答案

似乎 WL v6.1 确实存在多个嵌入式模式的问题,并且只显示一个过程的输入。该过程的输出未显示,因为它是由第二个嵌入式架构定义的。

此问题已得到解决,并使用您的 WSDL 和较新版本的 WL(尚未发布)进行了测试。因此,您将在 Worklight Studio 的下一次更新中解决这个问题。

如果您是 IBM 业务合作伙伴或客户,您可以打开 PMR 并请求间歇性 iFix。

关于web-services - 来自服务 WSDL 错误的 Worklight 应用程序框架数据对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23117677/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com