你好,我在Java深化发展的一些网络服务,所以我创建了一个WSDL文件来描述这个服务。数组元素的
随着我的WSDL创建Web服务(servcer侧)。但由于
我认为这个问题是
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bil="http://tempuri.org/Services/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<soapenv:Header/>
<soapenv:Body>
<bil:ArrayOfElement soapenc:arrayType="?" soapenc:offset="?" id="?" href="?">
<!--1 or more repetitions:-->
<Element>
<code>?</code>
<codeElement>?</codeElement>
<TypeService>?</TypeService>
</Element>
</bil:ArrayOfElement>
</soapenv:Body>
</soapenv:Envelope>
其实,我不知道是什么,我们必须把这一行中我不能创建客户端:
<bil:ArrayOfElement soapenc:arrayType="?" soapenc:offset="?" id="?" href="?">
而且我的测试中,我发送此ENVELOPPE和它的作品(但像你看到它的另一个WSDL):
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bil="http://tempuri.org/Services/">
<soapenv:Header/>
<soapenv:Body>
<bil:ArrayOfElement>
<Element>
<code>exmepleCode</code>
<codeElement>exmempleCodeElement</codeElement>
<TypeService>a_Service_Type</TypeService>
</Element>
</bil:ArrayOfElement>
<!-- other elements-->
</soapenv:Body>
</soapenv:Envelope>
我的建议(作为一般的方法)是使用XSD编辑器创建一个新的XSD(不生成一个Java类的XSD)“?” - 并且从这个Java类(包括代理和存根) XSD。 – 2011-04-27 19:52:30
好了,这是我真正做的,但我不创建一个XSD,但wsdl文件。我在eclipse中手动创建它。然后我生成类。 – user709659 2011-04-27 20:57:46