我正在使用Jax-ws为Onvif IP摄像头实现客户端应用程序,我正在向摄像头发送请求以创建PullPointSubscription,看来摄像头理解请求并处理请求并发送正确的响应,但客户端jax-ws代码抛出一个例外
MustUnderstand headers:[{http://www.w3.org/2005/08/addressing}Action] are not understood
Run Code Online (Sandbox Code Playgroud)
我不明白究竟是什么问题?任何人都可以解释问题是什么以及如何解决?
例外细节
an 29, 2012 11:43:48 AM com.sun.xml.ws.protocol.soap.MUTube getMisUnderstoodHeaders
INFO: Element not understood={http://www.w3.org/2005/08/addressing}Action
javax.xml.ws.soap.SOAPFaultException: MustUnderstand headers:[{http://www.w3.org/2005/08/addressing}Action] are not understood
at com.sun.xml.ws.protocol.soap.MUTube.createMUSOAPFaultException(MUTube.java:148)
at com.sun.xml.ws.protocol.soap.ClientMUTube.processResponse(ClientMUTube.java:109)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:651)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)
at com.sun.xml.ws.client.Stub.process(Stub.java:323)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:161)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:93)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:144)
at $Proxy46.createPullPointSubscription(Unknown Source)
at Test.SubInEventLast(Test.java:173)
at Test.main(Test.java:139)
Run Code Online (Sandbox Code Playgroud)
请求肥皂消息是
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope">
<S:Body>
<ns6:CreatePullPointSubscription xmlns:ns2="http://www.w3.org/2005/08/addressing"
xmlns:ns3="http://docs.oasis-open.org/wsn/b-2"
xmlns:ns4="http://docs.oasis-open.org/wsrf/bf-2"
xmlns:ns5="http://docs.oasis-open.org/wsn/t-1"
xmlns:ns6="http://www.onvif.org/ver10/events/wsdl"
xmlns:ns7="http://www.onvif.org/ver10/schema"
xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
xmlns:ns9="http://www.w3.org/2004/08/xop/include"
xmlns:ns10="http://docs.oasis-open.org/wsrf/r-2">
<ns6:Filter>
<ns3:TopicExpression xmlns="http://docs.oasis-open.org/wsn/b-2"
xmlns:tns1="http://www.onvif.org/ver10/topics"
Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet">
tns1:Device
</ns3:TopicExpression>
</ns6:Filter> …Run Code Online (Sandbox Code Playgroud) I am working on system that loads all *.so modules library automatically by call a script.
I tried to update one of the modules to support XML-RPC. I used the library ibxmlrpc-c3-dev on Ubuntu 10.10. The problem that dlopen() fails after my changes and dlerror() returns NULL. The compilation does not return any error.
How can I debug and fix this issue? Below is the code:
#include "stdlib.h"
#include "stdio.h"
#ifndef WIN32
#include "unistd.h"
#endif
#include "xmlrpc-c/base.h"
#include "xmlrpc-c/server.h"
#include …Run Code Online (Sandbox Code Playgroud) 我需要使用Eclipse在Java中创建Web服务客户端,使用onvif wsdl.
我花了几个小时没有找到如何做到这一点,这是我第一次使用肥皂,我的经验是在REST.
我尝试了很多像这样的教程来创建Web服务客户端,但是当我尝试从本地磁盘中选择wsdl文件时,eclipse显示了一个错误Could not retrieve the WSDL file ...,我用于文件的链接结构是file:/C:/ONVIF/media.wsdl.
我需要使用任何支持WS-Notification的Java框架来实现我的客户端.
您能否告诉我如何实现使用WSDL文件的客户端Web服务.
我是否需要Web服务器来实现soap Web服务客户端?
如果是,为什么?
web-services ×2
c ×1
java ×1
java-ee ×1
jax-ws ×1
linux ×1
onvif ×1
soap ×1
soap-client ×1
ubuntu ×1