我已经使用 -d xmlbeans 选项创建了存根。这是完整的命令:
wsdl2java.bat -u -d xmlbeans -ns2p http://www.sugarcrm.com/sugarcrm=com.sugarcrm.data,http://schemas.xmlsoap.org/soap/encoding/=com.sugarcrm.schema.import1,http://schemas.xmlsoap.org/wsdl/=com.sugarcrm.schema.import2,http://www.w3.org/2004/06/xmlmime=com.sugarcrm.schema.import3 -p com.sugarcrm -uri Sugar\Sugar_V2_E.xml
令人惊讶的是,“返回的”数据类型中没有 getter 方法,这些方法应该用于在与服务器通信后获取信息/结果。除此之外,没有设置器向服务器发送一些参数来执行基本操作。
例如:没有 getter的对象(根本没有方法):EntryList、EntryListImpl;选择字段,选择字段Impl;等等
注意:我不得不使用 XMLBeans,因为 Sugar WSDL 定义了 rpc/encoded 样式。
请帮忙,我被屏蔽了。
谢谢。