VS2008 非托管C++调用WebService ATL文件报错

小弟MFC新手一枚,最近公司有个项目升级功能,需要调用WebService服务接口,项目的开发环境是VS2008,基于MFC对话框。根据网上VS2008调用WebService的方法,下载了开源代码 ATL_Server_Source_and_Headers_9_0_70425_Alpha.zip,利用生成的sproxy.exe工具把WebService 的wsdl文件生成了WS_Service1.h头文件,引入工程后,编译就生成如下错误,折腾好几天了,一直找不到原因,求大神指点看看什么原因,拜谢。。。(下周二功能要验收,问题没解决,人都要疯了,没办法了,只能到宝地求助)
PS:我自己重新新建了一个基于VS2008的MFC对话框工程,可以正常编译通过,只有公司的这个项目不行,会报如下错误。两个工程里面的属性设置我也对比过,是一样的,所以可以排除是开发环境的原因。

1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcom.h(5900) : error C2296: “>>”: 非法,左操作数包含“unsigned long ”类型
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(309) : error C2440: “return”: 无法从“DWORD”转换为“unsigned long *”
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(331) : error C2440: “return”: 无法从“DWORD_PTR”转换为“unsigned long *”
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(343) : error C2440: “=”: 无法从“UINT_PTR”转换为“unsigned long *”
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(391) : error C2664: “SymGetSymFromAddr”: 不能将参数 3 从“unsigned long *
”转换为“PDWORD”
1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(421) : error C2440: “=”: 无法从“unsigned long”转换为“unsigned long *”
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(553) : error C2664: “StackWalk”: 不能将参数 7 从“LPVOID (__stdcall *)(HANDLE,unsigned long *)”转换为“PFUNCTION_TABLE_ACCESS_ROUTINE”
1> 在匹配目标类型的范围内没有具有该名称的函数
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcache.h(3044) : error C2144: 语法错误 : “unsigned long”的前面应有“)”
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcache.h(3044) : error C2059: 语法错误 : “)”
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlisapi.h(10469) : warning C4005: “MAX_NAME_LEN”: 宏重定义
1> d:\code manage\ats\ats2 储能机\1源代码\rs485通讯\复件 ats410-00011-037_mes\ateprogram_chromadc_double\GWCommonPublic.h(146) : 参见“MAX_NAME_LEN”的前一个定义
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2406) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2406) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2406) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2406) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2474) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2474) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2474) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2474) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2475) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2475) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2475) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2475) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2624) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2624) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2624) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换
1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换
1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2624) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同
1>正在生成代码...

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
VS2008 非托管C++调用WebService
小弟MFC新手一枚,最近公司有个项目升级功能,需要调用WebService服务接口,项目的开发环境是VS2008,基于MFC对话框。根据网上VS2008调用WebService的方法,下载了开源代码 ATL_Server_Source_and_Headers_9_0_70425_Alpha.zip,利用生成的sproxy.exe工具把WebService 的wsdl文件生成了WS_Service1.h头文件,引入工程后,编译就生成如下错误,折腾好几天了,一直找不到原因,求大神指点看看什么原因,拜谢。。。(下周二功能要验收,问题没解决,人都要疯了,没办法了,只能到宝地求助)rn PS:我自己重新新建了一个基于VS2008的MFC对话框工程,可以正常编译通过,只有公司的这个项目不行,会报如下错误。两个工程里面的属性设置我也对比过,是一样的,所以可以排除是开发环境的原因。rnrn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcom.h(5900) : error C2296: “>>”: 非法,左操作数包含“unsigned long *”类型rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(309) : error C2440: “return”: 无法从“DWORD”转换为“unsigned long *”rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(331) : error C2440: “return”: 无法从“DWORD_PTR”转换为“unsigned long *”rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(343) : error C2440: “=”: 无法从“UINT_PTR”转换为“unsigned long *”rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(391) : error C2664: “SymGetSymFromAddr”: 不能将参数 3 从“unsigned long **”转换为“PDWORD”rn1> 与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(421) : error C2440: “=”: 无法从“unsigned long”转换为“unsigned long *”rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlutil.h(553) : error C2664: “StackWalk”: 不能将参数 7 从“LPVOID (__stdcall *)(HANDLE,unsigned long *)”转换为“PFUNCTION_TABLE_ACCESS_ROUTINE”rn1> 在匹配目标类型的范围内没有具有该名称的函数rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcache.h(3044) : error C2144: 语法错误 : “unsigned long”的前面应有“)”rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcache.h(3044) : error C2059: 语法错误 : “)”rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlisapi.h(10469) : warning C4005: “MAX_NAME_LEN”: 宏重定义rn1> d:\code manage\ats\ats2 储能机\1源代码\rs485通讯\复件 ats410-00011-037_mes\ateprogram_chromadc_double\GWCommonPublic.h(146) : 参见“MAX_NAME_LEN”的前一个定义rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2406) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2406) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2406) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2406) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2474) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2474) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2474) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2474) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2475) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2475) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2475) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2475) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2624) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2624) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2624) : error C2446: “==”: 没有从“unsigned int”到“unsigned long *”的转换rn1> 从整型转换为指针类型要求 reinterpret_cast、C 样式转换或函数样式转换rn1>D:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlhttp.inl(2624) : error C2040: “==”: “unsigned long *”与“unsigned int”的间接寻址级别不同rn1>正在生成代码...
vs2005非托管方式调用webservice
webservice
非托管调用 webservice里的存储过程
rn从来没接触过这东西, 最近需要用到。。。。。rnrnrn有没有例子,推荐好的资料看一下啊 ,谢谢大家了啊。。rnrnrn
--webservice调用非托管c++出错。
问题描述:rn在windows2008上把wcf发布到IIS上,然后客户端调用wcf的webservice接口。rnC#的webservice接口调用C#的DLL,然后再调用C++的托管dll,然后c++的托管dll调用非托管c++的dll,在非托管c++的dll内部调用rnimg = Bitmap::FromHbitmap(hBmp, IntPtr::Zero);这句话出现异常。rn异常信息就一句话:rnParameter is not valid.rnrn如果不用Webservice调用,直接用windows程序去调用C#的DLL,然后再调用C++的托管dll,然后c++的托管dll调用非托管c++的dll,在非托管c++的dll内部调用rnimg = Bitmap::FromHbitmap(hBmp, IntPtr::Zero);这句话是正常的。rnrn请大家帮帮忙看看是什么原因,怎么解决,在这里谢谢大家了。我都痛苦一周了。
非托管的MFC程序调用Webservice报错,急,希望高手帮忙!!!
我的Webservice使用C#写的,发布后,通过IE可以浏览,我用C#写的客户端也可以成功调用。但是我用MFC(vs.2005)编写的客户端调用Webservice服务的时候报错,通过跟踪错误出错的语句是:rn __atlsoap_hr = SendRequest(_T("SOAPAction: \"http://tempuri.org/GetUserInfo\"\r\n"));rn继续跟踪这个函数进去是:rn m_socket.Navigate(&m_url, &navData)报错;rnrn给vs.2005打了sp1补丁,但是还是报错,出错地方如上。
vc.net2005中用非托管方式调用webservice
webservice用的是最简单,自动生成的方法:::rn [WebMethod(Description = "Hello World......This is a Test!!!!")]rn public string HelloWorld() rn return "Hello World";rn rn然后用vc.net生成一dialog工程,代码如下:::rn#include "WebService.h"rnusing namespace RegeditService;rnrnvoid CMySoapTestDlg::OnBnClickedOk()rnrn CoInitialize(NULL);rn HRESULT hr = S_OK;rn CComBSTR hiResult;rnrn CRegeditService* debug = new CRegeditService;rn hr = debug->HelloWorld(&hiResult);rn if(FAILED(hr))rn rn MessageBox("调用失败");rn rn elsern rn CString str(hiResult);rn MessageBox(str,"调用结果");rn rn delete debug;rn CoUninitialize();rnrn最后的结果是返回======>>调用失败!! rndebug到localhost.h中的rn__atlsoap_hr = SendRequest(_T("SOAPAction: \"http://tempuri.org/HelloWorld\"\r\n"));rn继续进入到rnatlhttp.inl中的rninline bool CAtlHttpClientT::ProcessStatus(DWORD dwFlags) throw()rnrn switch(m_nStatus)rn rn ......rn case 401: // auth requiredrn return NegotiateAuth(false); <<<<<<<================在这里rn break;rn case 407: // proxy auth requiredrn return NegotiateAuth(true);rn break;rnrn rn return false;rnrn发现m_nStatus=401,是什么原因?请指教!!!rn3ks
(求助)VC++.NET2005非托管调用WebService问题
在VC++.NET2005中,添加Web引用,生成非托管代理类,string[]却生成了BSTR,不知道如何传递数组啊,请大侠帮忙啊
非托管VC调用webservice的认证问题
现在遇到一个问题rn原来是用C#来调用web service 的,认证的时候rnrn用sc.Credentials = new NetworkCredential("password", "usename", "domain");rnrnrn可是用非托管vc应该怎么办啊,应该怎么写这部分代码,我们使用的是Microsoft SOAP Toolkit 3.0rnrn请高手指教。rn
C# 调用非托管DLL文件。
C# 调用非托管DLL文件。DLL文件是用C语言编写的。rn如下:rn1:结构定义rn rditag_t rn rditag_t结构定义了测点的结构rn typedef struct _rditag_trn rn char tagname[RDI_MAX_TAGNAME_LEN]; /*[in]*/rn float val; /*[out]*/rn int status; /*[out]*/rn rditag_t;rn 2:rditagname_trn rditagname_t定义了测点名类型rn typedef char rditagname_t[RDI_MAX_TAGNAME_LEN];rn----------------------------------------------------rn函数说明:rn 1:void rdi_read(rditag_t tags[], int count, int timeout);rn 参数rn tags 读取数据点数组。rn count 输入参数。rn timeout 输入参数。rn 2: void rdi_read0(rditagname_t tagnames[], float values[], int statuses[], int count, int timeout);rn参数rntagnames 输入参数。rnvalues 输出参数。rnstatuses 输出参数。rncount 输入参数。rntimeout 超时值(毫秒)。rn返回值rn 无。rn---------------------------------------------------------------------------------------rn用C#调用rn public struct rditag_structrn rn public string tagnaem;rn public float val;rn public int status;rn rnrnrnrn rditag_struct[] target_data_array = new rditag_struct[2000];//结构数组 0 - 1999rn rditag_struct target_date_struct = new rditag_struct();//结构变量rn target_date_struct.tagnaem[1] = "1ELE-11";rn target_data_array[1] = target_date_struct;rn rdi_read(ref target_data_array, 1, 2000);rn测试结果:rn 无返回值。target_data_array 的上限为0
调用webservice报错
用xe6调用微博service报如下错误,不知道为什么,用delphi7调用不报错,但参数传上去变成空值rn[img=https://img-bbs.csdn.net/upload/201410/19/1413720989_394928.jpg][/img]
cxf调用webservice报错
写了个简单的测试调用网上的webservice[code=java]JaxWsProxyFactoryBean factoryBean = new JaxWsProxyFactoryBean(); rn factoryBean.setAddress("http://webservice.webxml.com.cn/WebServices/WeatherWS");rn Object obj = factoryBean.create(); rn WeatherWebService hw = (WeatherWebService) obj; rn String[] str = hw.getWeatherbyCityName("福州");rn System.out.println(str);[/code]rn报错信息[code=java]Exception in thread "main" java.lang.NullPointerExceptionrn at org.apache.cxf.jaxws.support.JaxWsImplementorInfo.getWSInterfaceName(JaxWsImplementorInfo.java:231)rn at org.apache.cxf.jaxws.support.JaxWsImplementorInfo.initialize(JaxWsImplementorInfo.java:270)rn at org.apache.cxf.jaxws.support.JaxWsImplementorInfo.(JaxWsImplementorInfo.java:57)rn at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.setServiceClass(JaxWsServiceFactoryBean.java:174)rn at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.initializeServiceFactory(AbstractWSDLBasedEndpointFactory.java:227)rn at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:99)rn at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)rn at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)rn at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)rn at com.hwtt.wlw.web.controller.user.UserMoveController.main(UserMoveController.java:320)rn[/code]rn是不是少什么包,还是测试代码有错
调用webservice的报错
由于分不多,请知道的朋友帮忙了 谢谢rnrn[code=C#]rn由于目标机器积极拒绝,无法连接。 127.0.0.1:2950 rn说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Net.Sockets.SocketException: 由于目标机器积极拒绝,无法连接。 127.0.0.1:2950rnrn源错误: rnrn执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rnrn堆栈跟踪: rnrnrn[SocketException (0x274d): 由于目标机器积极拒绝,无法连接。 127.0.0.1:2950]rn System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +225rn System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +279rnrn[WebException: 无法连接到远程服务器]rn System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) +6022813rn System.Net.HttpWebRequest.GetRequestStream() +13rn System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +110rn DictControl.DictControl.GetOrganizeCategory() +31rn Standard_Search2.DictInit() +91rn Standard_Search2.Page_Load(Object sender, EventArgs e) +61rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35rn System.Web.UI.Control.OnLoad(EventArgs e) +91rn System.Web.UI.Control.LoadRecursive() +74rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.1 rnrn[/code]
C#调用webService报错
http://202.22.250.221/servlet/Services/FaxService?wsdlrn这是一个Fax的webService我在网页中可以打开且是xml文件,但是在VS2010中添加Web引用报错rnrnURI http://202.22.250.221/servlet/Services/FaxService?wsdl 处的文档未被识别为已知的文档类型。rn来自各已知类型的错误信息可能有助于修复该问题:rn- 来自“XML 架构”的报告是“W3C XML 架构的根元素应为 ,命名空间应为“http://www.w3.org/2001/XMLSchema”。”。rn- 来自“DISCO 文档”的报告是“在 URL http://202.22.250.221/servlet/Services/FaxService?wsdl 处找不到发现文档。”。rn - 无法识别此文档格式。rn- 来自rnrn问什么,难道是商家的接口有问题,还是我的调用有问题?
axis1调用webservice报错
Unexpected wrapper element execute found. Expected http://was.application/execute.rnrnrn代码如下:rn[code=Java]rnrnrnimport java.io.ByteArrayInputStream;rnimport java.io.ByteArrayOutputStream;rnimport java.io.IOException;rnimport java.rmi.RemoteException;rnimport java.util.zip.GZIPOutputStream;rnrnimport javax.xml.rpc.ServiceException;rnrnimport org.apache.axis.client.Call;rnimport org.apache.axis.client.Service;rnrnpublic class Test rn rn /**rn * 数据GZIP 压缩rn * rn * @param strrn * @returnrn * @throws IOExceptionrn */rn public static String compress(String s) throws IOException rn ByteArrayInputStream input = new ByteArrayInputStream(srn .getBytes("UTF-8"));rn ByteArrayOutputStream output = new ByteArrayOutputStream(1024);rn GZIPOutputStream gzout = new GZIPOutputStream(output);rn byte[] buf = new byte[1024];rn int number;rn while ((number = input.read(buf)) != -1) rn gzout.write(buf, 0, number);rn rn gzout.close();rn input.close();rn String result = new sun.misc.BASE64Encoder().encode(output.toByteArray());rn output.close();rn return result;rn rn public static void main(String[] args) throws ServiceException, RemoteException, IOException rn Service service = new Service();rn String receive_result = "";rn Call call = null;rn String object_key = "W2011112218376";rn String amount = "10.0";rn String json = "orderId:'"+object_key+"',amount:'"+amount+"'";rn call = (Call) service.createCall();rn call.setTargetEndpointAddress("http://115.236.180.114:701/services/wholesaleCheckBalanceWAS?wsdl=IWholesaleCheckBalanceWAS.wsdl");rn call.setOperationName("execute"); rn receive_result = (String)call.invoke(new Object[]"U001",compress(json),"125539"); rn System.out.println(receive_result);rnrn rnrnrnrn[/code]
客户端调用webservice报错
错误原因:java.net.SocketException: SOCKS : authentication failedrn备注在开发环境没有这个问题,部署到服务器上才有这个问题,错误原因是鉴权失败不知是否是服务器上有何设置屏蔽了该调用,服务器是linux环境,可以ping通目标机器的IP及端口;rn希望有碰到类似情况并解决的朋友支持一下,十分感激
pb调用webservice 报错
警告: Interceptor for http://bg.cxf.sts.hnkywl.com/HelloWorldImplService#http://bg.cxf.sts.hnkywl.com/helloworld has thrown exception, unwinding nowrnorg.apache.cxf.interceptor.Fault: The given SOAPAction http://bg.cxf.sts.hnkywl.com/#helloworld does not match an operation.rnrnrnbg.cxf.sts.hnkywl.com 类的包路径rn
WEBSERVICE调用报错
一个WBESERVICE在IIS服务器上测试正常,但是在其他机器调用出现rn您试图从目录中执行 CGI、ISAPI 或其他可执行程序,但该目录不允许执行程序。 rn--------------------------------------------------------------------------------rnrn请尝试以下操作:rnrn如果您认为该目录应该允许执行访问权限,请与网站管理员联系。 rnHTTP 错误 403.1 - 禁止访问:执行访问被拒绝。rnrn望高手指点配置哪儿有问题,WEBSERICE已经设置为"纯脚本"
Ajax跨域调用webService报错
webService是放在服务器A上的,而调用webService的ajax代码是放在服务器B上的。rn按照在网上查的在web.config中做了配置rn[code=text]rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn[/code]rn然而只有当html直接访问才能成功,一旦把html部署之后再访问就显示没有权限。错误如下图所示:rn[img=https://img-bbs.csdn.net/upload/201707/07/1499408203_15824.png][/img]rn对这两种方式的request headers做了对比,发现他们之间的区别在于部署之后的request里多了一个referer属性rn[img=https://img-bbs.csdn.net/upload/201707/07/1499408567_905045.png][/img]rn不知道现在有什么好的办法可以解决。rnajax调用代码如下:rn[code=javascript][/rn$.ajax(rn url: 'https://XXX.com/xxx.asmx/GetMerchant',rn type: 'POST',rn data: "'merchantName':'XXX'",rn dataType: 'JSON',rn contentType: "application/json",rn success: function (res) rn console.log(res);rn ,rn error: function (data) rn console.log(data);rn rn );rncode]
调用webservice报错====
rnjava.lang.NoSuchMethodException: com.tydic.smpin.intf.imp.BillDataSvrImp.BillInfo([Lcom.tydic.smpin.intf.vo.BillReqVo;, null)rn at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)rn at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)rn at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)rn at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)rn at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)rn at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)rn at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)rn at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)rn at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)rn at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)rn at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)rn at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)rn at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)rn at org.apache.axis.client.Call.invokeEngine(Call.java:2784)rn at org.apache.axis.client.Call.invoke(Call.java:2767)rn at org.apache.axis.client.Call.invoke(Call.java:2443)rn at org.apache.axis.client.Call.invoke(Call.java:2366)rn at org.apache.axis.client.Call.invoke(Call.java:1812)rn at com..SmsForRuleBMOImpl.call(SmsForRuleBMOImpl.java:123)rn at com.SmsForRuleBMOImpl.callSmsWs(SmsForRuleBMOImpl.java:40)rn
jquery调用webservice报错
js调用WebService:rnrn//WebService所在服务器IP地址rnvar httpUrl = "http://192.168.0.240";rnrn/*jQuery ajax调用WebServicern---------------------------------------------*/rn;function webserviceJson(asmxName,methodName,jData) rn $.ajax(rn type: "POST",rn contentType: "application/json; charset=utf-8",rn url: httpUrl + "/"+ asmxName + "/" + methodName,rn data: jData,rn dataType: 'json',rn beforeSend: function () rn // 禁用按钮防止重复提交rn $("#btnSubmit").attr( disabled: "disabled" );rn $("loading").show();rn ,rn success: function (json) rn f_GetLogin(json);rn ,rn complete: function () rn //解除按钮rn $("#btnSubmit").removeAttr("disabled");rn $("loading").hide();rn ,rn error: function (XMLHttpRequest, textStatus, errorThrown) rn WebServiceErroReturn(textStatus);rn //console.info("error: " + data.responseText);rn rnrn );rn rnrn调 用代码:rnfunction f_Login(vUserName,vPassWord)rn rn //获得文档框数据rn var inpUserName = this.document.getElementById(vUserName);rn var inpPassWord = this.document.getElementById(vPassWord);rnrn //传送给 WebServicern var data = '"LG_V_LoginName": "'+inpUserName.value+'"'rn +',"LG_V_PassWord": "' + inpPassWord.value + '"';rn rn webserviceJson('WBS_SignInformation.asmx','f_Login',data);rn rn rnrn/*返回处理*/rn;function f_GetLogin(jsonD) rn $.each(jsonD.d, function (key, value) rn if(value.LG_ID > -1 )rn rn //成功rn rn elsern rn //失败rn rn );rnrnrn说明:rnWebService在另一台服务器上(IP:192.168.0.240)rn JS调用代码所在的IIS服务在开发计算机上(IP:192.168.0.141)rnrn问题:rn在本地目录里面直接打开调用的HTML页没有问题,把调用的HTMl文件发布到IIS上调用不行(不执行success里的函数,执行error里的函数)rn请各位大神看看是什么原因,谢谢
webservice调用报错
调用webservice时,若报错 java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration 则可能是由于更新了class文件后,没有将服务重启,将应用(tom...
调用WEBSERVICE报错!!!!!!!!
基础连接已经关闭: 无法连接到远程服务器。rnrn我调用远程服务器的WEBSERVICErn我的系统报错rn我本机没有设置代理rn所以无法理解!!!
调用远程的webservice报错
我的webservice是在远程服务器上的,在本地引用这个ws后,运行报错:rn[code=C#]Could not find default endpoint element that references contract 'ServiceReference1.UrlServiceNewSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.[/code]是不是要在本地配置下呢?
webservice打包调用报错
错误代码: javax.xml.ws.soap.SOAPFaultException: Response was of unexpected text/html ContentType.  Incoming portion of HTML stream 操作步骤: 用脚本自动生成客户端并打包成jar文件,然后调用该包的类时报错,但服务端没有报错,说明是在通过包连接服务端时出现问题。 错
webservice调用报错:javax.xml.ws.soap.SOAPFaultException
服务端逻辑单独跑是没问题的,启动服务端用wsdl访问也没问题,通过自动生成的客户端代码去访问就出问题了(例如,我在服务端有一个方法“Login58”单独用服务端的main方法去跑是没问题的,可是用webservice的客户端去调用“Login58”就出问题了),求大神详解rn详细报错信息如下rn[code=java]rnException in thread "main" javax.xml.ws.soap.SOAPFaultException: com/google/common/base/Functionrn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157)rn at com.sun.proxy.$Proxy27.login58(Unknown Source)rn at com.honestcareer.hunter.util.LoginZPService.Client.Login58(Client.java:147)rn at com.honestcareer.hunter.util.LoginZPService.Client.main(Client.java:202)rnCaused by: org.apache.cxf.binding.soap.SoapFault: com/google/common/base/Functionrn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:84)rn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51)rn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)rn at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)rn at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)rn at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)rn at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:845)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1624)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1513)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1318)rn at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)rn at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)rn at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)rn ... 3 morernrn[/code]rn我想过是不是少“com/google/common/base/Function”这个包的问题,可是,在服务端单独跑起来是没问题的,于是我往客户端的项目里边也根据这个链接(http://blog.csdn.net/jlminghui/article/details/41120773)的提示加了包,但也是没任何作用,这,我就有些懵了
CB 调用WebService报错
调用天气WebServicernNew->WebServices->WSDL Importer 导入WSDL定义,生成一个Unit,保存。rnrnWSDL文件路径 "F:\控件\Weather\App_WebReferences\cn\com\webxml\WeatherWebService.wsdl"rnrn调用后报:无法打开"F:\控件\Weather\App_WebReferences\cn\com\webxml\WeatherWebService.wsdl",这是什么问题呀rnrnWeatherWebService.cpprn[code=c]// ************************************************************************ //rn// The types declared in this file were generated from data read from thern// WSDL File described below:rn// WSDL : F:\控件\Weather\App_WebReferences\cn\com\webxml\WeatherWebService.wsdlrn// Encoding : utf-8rn// Version : 1.0rn// (2016-12-09 15:24:01 - $Revision: 1.0.1.0.1.82 $)rn// ************************************************************************ //rnrn#include rn#pragma hdrstoprnrn#if !defined(WeatherWebServiceH)rn#include "WeatherWebService.h"rn#endifrnrnrnrnnamespace NS_WeatherWebService rnrn_di_WeatherWebServiceSoap GetWeatherWebServiceSoap(bool useWSDL, AnsiString addr)rnrn static const char* defWSDL= "F:\控件\Weather\App_WebReferences\cn\com\webxml\WeatherWebService.wsdl";rn static const char* defURL = "http://www.webxml.com.cn/WebServices/WeatherWebService.asmx";rn static const char* defSvc = "WeatherWebService";rn static const char* defPrt = "WeatherWebServiceSoap";rn if (addr=="")rn addr = useWSDL ? defWSDL : defURL;rn THTTPRIO* rio = new THTTPRIO(0);rn if (useWSDL) rn rio->WSDLLocation = addr;rn rio->Service = defSvc;rn rio->Port = defPrt;rn else rn rio->URL = addr;rn rn _di_WeatherWebServiceSoap service;rn rio->QueryInterface(service);rn if (!service)rn delete rio;rn return service;rnrnrnrn// ************************************************************************ //rn// This routine registers the interfaces and types used by invoke the SOAPrn// Service.rn// ************************************************************************ //rnstatic void RegTypes()rnrn /* WeatherWebServiceSoap */rn InvRegistry()->RegisterInterface(__interfaceTypeinfo(WeatherWebServiceSoap), L"http://WebXml.com.cn/", L"utf-8");rn InvRegistry()->RegisterDefaultSOAPAction(__interfaceTypeinfo(WeatherWebServiceSoap), L"http://WebXml.com.cn/%operationName%");rn RemClassRegistry()->RegisterXSInfo(__arrayTypeinfo(ArrayOfString), L"http://WebXml.com.cn/", L"ArrayOfString");rn /* getSupportDataSetResult */rn RemClassRegistry()->RegisterXSClass(__classid(getSupportDataSetResult), L"http://WebXml.com.cn/", L"getSupportDataSetResult");rn InvRegistry()->RegisterInvokeOptions(__interfaceTypeinfo(WeatherWebServiceSoap),ioDocument); //uky 20110422rnrn#pragma startup RegTypes 32rnrn; // NS_WeatherWebServicernrn[/code]
调用WebService的时候报错
-
PB11调用WEBSERVICE报错?
SoapConnection i_connrni_conn = create soapconnectionrnn_webservice myproxyrnlong ret rnrnret = i_Conn.CreateInstance(myproxy, "n_webservice","http://localhost/webservice/n_webservice.asmx?wsdl")rnrnmessagebox('b',string(ret)) //此处返回0rntryrn string ls_data rn// ls_data = myproxy.of_getdata( )rn ls_data = myproxy.classname()rn messagebox('a',ls_data)rncatch (SoapException e)rn messagebox('a',e.getmessage())rnend try rn上面代码中,如果用ls_data = myproxy.classname()可以获取正确内容,但如果用ls_data = myproxy.of_getdata()系统则提示:rnThe soapclient doesn't support .net proxyrn请高手帮解答一下,是哪里有问题?rn rn如果在编译那里选择WSDL engine用easysoap却可以获取数据,用.net却不行,是什么原因,希望有人愿意帮一下我rn
java调用webservice报错
对方webservice接口是.net开发的,在网上找了个例子,测试,但是没有成功。rn下面是代码:rn[code=Java]rnprivate static String wsdlUrl = "http://tempuri.org/WebDBManage/Database/GetDataSetByYearAndMonth"; rn public static void main(String[] args) rn rn try rn Integer iYear = new Integer(2011);rn Integer iMonth = new Integer(1);rn String endPoint = "http://192.168.1.104:80/WebDBManage/Database.asmx?wsdl";rn Service service = new Service();rn rn Call call = (Call) service.createCall();rn call.setTargetEndpointAddress(endPoint);rn call.setReturnClass(java.lang.String[].class);rn call.addParameter("iYear", //设置要传递的参数 rn org.apache.axis.encoding.XMLType.XSD_INT, rn javax.xml.rpc.ParameterMode.IN);//接口的参数rn call.addParameter("iMonth", org.apache.axis.encoding.XMLType.XSD_INT, rn javax.xml.rpc.ParameterMode.IN);rn rn call.setOperationName("GetDataSetByYearAndMonth");rn call.setUseSOAPAction(true);rn call.setSOAPActionURI("http://tempuri.org/WebDBManage/Database/GetDataSetByYearAndMonth");rn Object results = (Object) call.invoke(new Object[]iYear,iMonth);rn rn catch (Exception e) rn e.printStackTrace();rn rn rn[/code]rnIP是用的对方提供的,运行后报错。rn15:59:55,546 ERROR Call:2274 - Exception:rnorg.xml.sax.SAXException: No deserializer for http://www.w3.org/2001/XMLSchemaanyTypern搜索后未找到解决办法,求解。
weblogic下调用webservice报错
1:项目在windows+tomcat下运行无报错,运行正常;rn2:在linux+weblogic下部署成功,程序运行到最后一步通过webservice返回报文报错,webservice客户端代码是通过wsdl用myeclipse生成,调用代码如下rn[code=java] ReceiveImplService ris = new ReceiveImplService();rn String res = ris.getReceiveImplPort().receive(sb.toString());rn System.out.println("server返回" + res);[/code]rn客户端代码(ReceiveImplService这个类内容如下)rn[code=java] public ReceiveImplService() rn rn super(RECEIVEIMPLSERVICE_WSDL_LOCATION, new QName(rn "http://yourcompany.com/", "ReceiveImplService"));rn [/code]rn这个super引用如下rn[code=java] protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) rn delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,rn serviceName,rn this.getClass());rn [/code]rn报错信息如下:rn[code=html]rnINFO 2014-02-19 10:31:00,461 [ExportData.java,91] - 535381ad4447fa49014447fb4d6a0003对应wsdl地址为http://11.1.9.213:8088/Server/ReceiveImplPort?wsdlrnrnERROR 2014-02-19 10:31:00,463 [ExportData.java,99] - 发送异步返回报文失败Unable to create Provider: weblogic.wsee.jaxws.spi.WLSProvider cannot be cast to javax.xml.ws.spi.Providerrnjavax.xml.ws.WebServiceException: Unable to create Provider: weblogic.wsee.jaxws.spi.WLSProvider cannot be cast to javax.xml.ws.spi.Providerrnrn at javax.xml.ws.spi.Provider.provider(Provider.java:82)rn at javax.xml.ws.Service.(Service.java:57)rn at cn.net.sinodata.returnData.ReceiveImplService.(ReceiveImplService.java:57)rn at com.bpo.runImpl.ExportData.run(ExportData.java:92)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:679)[/code]rnrnrn我怀疑可能是因为在weblogic下缺失“provider”这个类的引用,然后就添加了webservice-rt.jar,之后该项目就无法正常部署,报错信息如下,不知道有没有用rn[code=html]Cannot cast weblogic.wsee.jaxws.framework.policy.WSDLParserExtension to com.sun.xml.ws.api.wsdl.parser.WSDLParserExtensionrn failed to parse runtime descriptor: exception during WSDL parsing:rn[/code]rnrn希望有人能告知导致这个问题的原因,是jar包缺失还是什么的,万分感谢
vs2008 C# 调用互联网的webservice
webservice地址:http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmxrn大家可以打开看一下,我想利用getStockInfoByCode()这个方法,这个方法接受一个string类型,返回一个string[]类型rn下面是我的操作方法,大家看看有什么问题没有,我用的是vs2008,其他版本可能操作略有不同rn1.新建一个webform的工程rn2.在工程名上点右键->添加服务引用...rn3.在地址中输入webservice地址:http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmxrn4.点确定rn5.这时候你会发现,只有一个getStockInfoByCode的类,而不是方法,只能这么用rngetStockInfoByCode aaa = new getStockInfoByCode();rn我想问大家为什么http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx里明明有getStockInfoByCode方法,rn可是添加完引用又没有了呢?rn请知情者指教,多谢!rn在线等,满意立即结贴!
VC++动态调用webservice(非托管)
我用的VS2008 我学的是C++ 请问该怎么实现动态调用webservice。 在网上找到的都是C#动态调用,看不明白
ATL中调用DLL报错??
我写了一个ATL,需要调用自己写的DLLrnrn一调用就报错,DLL内部没问题,用MFC程序调用没任何问题rn其中调用代码如下:rn[code=C/C++]rnHINSTANCE h=LoadLibrary(filename);rn if(h==NULL)rn return "";rnrn typedef CString (_cdecl *pShow)(CString,CString,CString,CString,CString); rn pShow Show=(pShow)GetProcAddress(h,methodname);rn res=Show(sLinkName,m_sDBuser,m_sDBpwd,prams,"");//这里报错,提示"user breakpoint called from ..."rn FreeLibrary(h);rn[/code]rn用MFC调用则是好的rnrn我想问下大家,ATL调用DLL有什么要求?rnrnps:[color=#FF0000]我调用的时候并不是注册成服务调用的,而是通过工程运行ATL然后调用DLL的。[/color]rn
非托管dll引用,函数结构体调用报错
int read (int nDevHandle, const OpParam *pReaderParam, DealReport *func)rntypedef structrn rn unionrn ReadParam tReadParam;rn WriteParam tWriteParam;rn op;rn unsigned int a;rn unsigned short b;rn unsigned short c;rnOpParamElement;rn以上代码如何转化成c#的结构体???急急
[求助]VS2008调用AfxBeginThread报错
在VS2008里面进行多线程编程,调用AfxBeginThread时报错:rnAfxBeginThread(CTcpTransDlg::SendThreadProc,rn GetSafeHwnd(),rn THREAD_PRIORITY_NORMAL,rn 0,rn 0,rn NULL);rn报错如下:rn1>d:\works\vc\tcptrans\tcptrans\tcptransdlg.cpp(214) : error C3867: “CTcpTranrnrnsDlg::SendThreadProc”: 函数调用缺少参数列表;请使用“&CTcpTransDlg::SendThrearnrndProc”创建指向成员的指针rnrn我尝试了一下几种方法:rn1.在CTcpTransDlg::SendThreadProc前面加上&;rn2.第一个参数后面加上括号,写成CTcpTransDlg::SendThreadProc();rn均无法编译通过。网上找了很久没找到解决方法,求各位大侠帮忙看看该怎么解决。
VS2008如何建立非托管项目
以前没用过webserver,现在的项目要我调用webserver接口,并且指定要用非托管,可是VS2008上好像不能建立非托管项目,哪位大哥知道怎么用吗?这方面才接触,所以最好有具体的操作方法!谢谢了!
关于webService 调用远程webService 报错
有webService 服务 A ,提供远程调用接口 a() ,在a()方法中调用了 webService Brn提供的远程方法b()。这个时候就报错,远程方法找不到 ,还报Jaxb 有错误。 单独调用每一个webService 服务时正确。 求教 :为什么 ? 紧急 望各位高手赐教,不胜感激!rn
JMeter启动webservice调用报错
[color=blue]2012/11/18 20:44:05 ERROR - jmeter.gui.action.RemoteStart: Failed to initialise remote engine java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java...
求助,调用JAVA WEBSERVICE报错
调用JAVA开发的WEBSERVICE时报一下错误,有朋友知道如何解决?rn知道的麻烦指点一下,谢谢!rn---------------------------rnDebugger Exception Notificationrn---------------------------rnProject Project2.exe raised exception class ESOAPDomConvertError with message 'DocumentElement http://schemas.xmlsoap.org/soap/envelope/:Envelope expected, http://schemas.xmlsoap.org/wsdl/:definitions found'.rn---------------------------rnBreak Continue Help rn---------------------------rn
SAP调用外部webservice报错
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入 欢迎使用Ma...
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表