开发者

Problem consuming webservice in grails using ws-client?

开发者 https://www.devze.com 2023-04-04 00:27 出处:网络
Property of webservice <s:complexType name=\"Package_Attributes\"> <s:sequence> <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Title\" type=\"s:string\"/>

Property of webservice

<s:complexType name="Package_Attributes">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Title" type="s:string"/>
<s:el开发者_开发问答ement minOccurs="1" maxOccurs="1" name="ID" type="s:int"/>
<s:element minOccurs="1" maxOccurs="1" name="PackageID" type="s:int"/>
</s:sequence>
</s:complexType>

Grails code

def result = proxy.GetPackageAttributes()    
render result.ID
render result.PACKAGEID

Error

i am able to get "ID" but "PACKAGEID" is not working

i am able to consume this in Dot.Net platform, so there is no problem with webservice...

0

精彩评论

暂无评论...
验证码 换一张
取 消