找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
查看: 136|回复: 1

[求助] u8 构造APIBroker 报错,大佬帮忙看一下,急急!!

[复制链接]
发表于 2024-3-18 14:58:20 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册账号

×
报错位置:

            //第四步:构造APIBroker
            U8ApiBroker broker = new U8ApiBroker(myApiAddress, envContext);

System.InvalidOperationException:无法反射方法 MOMQueryServiceWSProxy.GetMessage。---> System.InvalidOperationException: 来自命名空间“XXX”的 XML 元素“GetMessage”引用了某个方法和类型。请使用 WebMethodAttribute 更改该方法的消息名称,或使用XmlRootAttribute 更改该类型的根元素。

   在System.Xml.Serialization.XmlReflectionImporter.ReconcileAccessor(Accessoraccessor, NameTable accessors)

   在System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(StringelementName, String ns, XmlReflectionMember[] members, BooleanhasWrapperElement, Boolean rpc, Boolean openModel, XmlMappingAccess access)

   在System.Web.Services.Protocols.SoapReflector.ImportMembersMapping(XmlReflectionImporterxmlImporter, SoapReflectionImporter soapImporter, BooleanserviceDefaultIsEncoded, Boolean rpc, SoapBindingUse use, SoapParameterStyleparamStyle, String elementName, String elementNamespace, Boolean nsIsDefault,XmlReflectionMember[] members, Boolean validate, Boolean openModel, String key,Boolean writeAccess)

   在System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfomethodInfo, Boolean client, XmlReflectionImporter xmlImporter,SoapReflectionImporter soapImporter, String defaultNs)

   --- 内部异常堆栈跟踪的结尾 ---

   在System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfomethodInfo, Boolean client, XmlReflectionImporter xmlImporter,SoapReflectionImporter soapImporter, String defaultNs)

   在System.Web.Services.Protocols.SoapClientType.GenerateXmlMappings(Type type,ArrayList soapMethodList, String serviceNamespace, BooleanserviceDefaultIsEncoded, ArrayList mappings)

   在System.Web.Services.Protocols.SoapClientType..ctor(Type type)

   在System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()

   在UFSoft.AIF.MOM.Adapter.MOMQueryServiceWSProxy..ctor(String url)

   在UFSoft.AIF.MOM.Adapter.MOMQueryServiceProxyFactory.CreateMOMQueryService(CommunicationTypecommunicationType, String sServer)

   在 UFSoft.AIF.MOM.Adapter.MOMAdapter..ctor()

   在UFIDA.U8.U8MOMAPIFramework.MomServiceBroker..ctor(MOMServiceAddressserviceAddress, MOMEnvContext envContext)

   在UFIDA.U8.U8APIFramework.U8ApiBroker..ctor(U8ApiAddress apiAddress, U8EnvContextenvContext)

   在UFInterface.U8.V10X.U8APIHelper.StoreInOutAdd(clsLogin u8Login, StringapiAddress, Connection connection, String sVouchType, IXMLDOMDocument2 domHead,IXMLDOMDocument2 domBody, Boolean bCheck, Boolean bBeforCheckStock, BooleanbIsRedVouch, String& errMsgRet, String& VouchIdRet)

发表于 2024-3-20 13:15:13 | 显示全部楼层
用无参数DOM方式调用
回复 点赞 拍砖

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-4-27 15:50 , Processed in 0.034067 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表