Webservice invocation problem
Hi All,
I am trying to call a webservice deployed on Sunone app server 8.2. I have created the client stubs using wscompile tool. I am not getting any response when calling the webservice, the request is not sent to server at all. Following is the client code:-
XdmOperationsPortTypeService_Impl objImpl = new XdmOperationsPortTypeService_Impl();
XdmOperationsPortType_Stub stub = (XdmOperationsPortType_Stub)objImpl.getXdmOperations();
javax.xml.soap.SOAPElement strXDMQuery=null;
strXDMQuery.setTextContent("queryRequestForXDM");
javax.xml.soap.SOAPElement strXDMQueryResponse = stub.query(strXDMQuery);
where query is the webservice function i am tryng to call. XdmOperationsPortType_Stub and XdmOperationsPortTypeService_Impl are auto generated files.
in the query function of XdmOperationsPortType_Stub class, the program flow is stopping at the following line
StreamingSenderState state = start(_handlerChain);
Would appreciate any pointers on this.
What does your code look like?
By the error it appears you are trying to access a field called "FAULT_CODE_IOEXCEPTION" which doesn't exist.
Similar Messages
-
hello colleagues,
In the phase Connect Diagnostics dont show the Agent available in SLD, but when go to SLD i have the agents,
Error,
Connect Diagnostics Agent
The table does not contain any data
Agent availables in all SLD
SOAP:1.007 SRT: Unupported xstream found: ("HTTP Code 401 : Unauthorized")
Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING
ThanksOK, then pls follow below steps;
- Go to step 'Create Users' in solman_setup System Preparation scenario and make sure the user SM_INTERN_WS has a green status. Use the 'Test Login' button to make sure the user is not locked and has correct credentials maintained in solman_setup
- Immediately after checking the user status, navigate to Configure Connectivity->Enable Web Services and execute again the 'Create Logical Ports' automatic activity, in order to propagate the correct credentials to the Logical Port definitions.
- If the above operation is not successful, repeat the two steps above, providing a different user Id in 'Create Users' step, eg SM_INTERN_W1. This will prevent situations where the user gets locked by Logical Ports using an obsolete password.
Let me know the results.
Regards,
Vivek -
ODI-Webservice Invocation- Namespace missing in BPEL
Hi,
I have installed ODI (10.1.3.4).While trying to invoke a webservice(simple BPEL process) by giving the wsdl url, and giving the inputs and executing it, the request to the webservice(BPEL process) reaches without the namespace spacified but for the root element. Could anyone suggest a solution to this missing namespace during webservice invocation in ODI
Thanks in advance.
Regards,
PraveenWere you able to find any fix for this issue. We are having a major show stopper because of this. Your help will be appreciated. Thank you.
-
Yesterday i developed a sample webservice application using weblogic paltform
7.0 release..
Actually i am trying to connect another weblogic server running in different machine
through my webservice application..while connecting(sending message) i am getting
following proxy exceptions..
first i tried with proxy server(i got proxy exception) then i tried by dial up
connection(this time ip address is not recognized problem)..Anyway here i enclosed
my exception..
weblogic.jws.control.ControlException: ControlException on control investigateControl[This
proxy is not part of an existing conversation.] at weblogic.knex.control.ControlHandler.invoke(ControlHandler.java:333)
at $Proxy115.onCreditReportDone($Proxy115.ctrl) at java.lang.reflect.Method.invoke(Native
Method) at weblogic.knex.dispatcher.DispMethod.invoke(DispMethod.java:189) at
weblogic.knex.dispatcher.Invocable.invoke(Invocable.java:490) at weblogic.knex.bean.WebBean.invokeBase(WebBean.java:190)
at weblogic.knex.bean.WebServiceBean.invoke(WebServiceBean.java:68) at weblogic.knex.bean.WebServiceBean_sdf2pw_EOImpl.invoke(WebServiceBean_sdf2pw_EOImpl.java:46)
at weblogic.knex.bean.WebDispatcherBean.invoke(WebDispatcherBean.java:103) at
weblogic.knex.bean.RemoteDispatcherBean.invoke(RemoteDispatcherBean.java:117)
at weblogic.knex.bean.RemoteDispatcherBean_9hm9uw_EOImpl.invoke(RemoteDispatcherBean_9hm9uw_EOImpl.java:100)
at weblogic.knex.bean.RemoteDispatcherBean_9hm9uw_E! OImpl_WLSkel.invoke(Unknown
Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.knex.bean.RemoteDispatcherBean_9hm9uw_EOImpl_WLStub.invoke(Unknown
Source) at weblogic.knex.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:111)
at weblogic.knex.dispatcher.Dispatcher.dispatch(Dispatcher.java:72) at weblogic.knex.dispatcher.HttpServer.doPost(HttpServer.java:256)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.se! rvlet.internal.WebAppServletContext$ServletInvocationAction.r!
un(WebAp pServletContext.java:5360) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)Please post this to the Workshop newsgroup.
Rangarajan wrote:
i am also getting same problem..if anyone knew plz help me out..
weblogic.jws.control.ControlException: ControlException on control investigateControl[This
proxy is not part of an existing conversation.] at weblogic.knex.control.ControlHandler.invoke(ControlHandler.java:333)
at $Proxy115.onCreditReportDone($Proxy115.ctrl) at java.lang.reflect.Method.invoke(Native
Method) at weblogic.knex.dispatcher.DispMethod.invoke(DispMethod.java:189) at
weblogic.knex.dispatcher.Invocable.invoke(Invocable.java:490) at weblogic.knex.bean.WebBean.invokeBase(WebBean.java:190)
at weblogic.knex.bean.WebServiceBean.invoke(WebServiceBean.java:68) at weblogic.knex.bean.WebServiceBean_sdf2pw_EOImpl.invoke(WebServiceBean_sdf2pw_EOImpl.java:46)
at weblogic.knex.bean.WebDispatcherBean.invoke(WebDispatcherBean.java:103) at
weblogic.knex.bean.RemoteDispatcherBean.invoke(RemoteDispatcherBean.java:117)
at weblogic.knex.bean.RemoteDispatcherBean_9hm9uw_EOImpl.invoke(RemoteDispatcherBean_9hm9uw_EOImpl.java:100)
at weblogic.knex.bean.RemoteDispatcherBean_9hm9uw_E! OImpl_WLSkel.invoke(Unknown
Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.knex.bean.RemoteDispatcherBean_9hm9uw_EOImpl_WLStub.invoke(Unknown
Source) at weblogic.knex.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:111)
at weblogic.knex.dispatcher.Dispatcher.dispatch(Dispatcher.java:72) at weblogic.knex.dispatcher.HttpServer.doPost(HttpServer.java:256)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.se! rvlet.internal.WebAppServletContext$ServletInvocationAction.r!
un(WebAp pServletContext.java:5360) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)--
Rajesh Mirchandani
Developer Relations Engineer
BEA Support -
Need help in invoking these webservices..
There are two webservices that I am trying to invoke one
after the other:-
1) first web service "setupwebsession" sets a session. Here I
have setup the session.webuserUI to a component.
2) second service tries to get a profile but displays an
error
Here is the webservice consuming:-
<cfinvoke webservice="
http://localhost:8050/WebServices.cfc?wsdl"
method="setUpWebUserSession"
returnVariable="soo">
<cfinvokeargument name="userName"
value="[email protected]">
<cfinvokeargument name="applicationToLogIn"
value="atccWeb">
</cfinvoke>
<cfoutput> #soo# </cfoutput>
<cfdump var="#Session.SessionID#">
<cfinvoke webservice="
http://localhost:8050/WebServices.cfc?wsdl"
method="getProfileHTML" returnvariable="profilehtml">
</cfinvoke>
<cfoutput>#getProfileHTML#</cfoutput>
I am trying to consume both these webservices but it displays
a following error.
Cannot perform web service invocation getProfileHTML.
The fault returned when invoking the web service operation
is:
AxisFault
faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString:
[line 1, column 8] [--Catch Data--]
type: Application
tagname: CFOUTPUT
template:
C:/jboss-eap-4.3/jboss-as/server/atcc/tmp/deploy/tmp48291CTiWebServicesAPI.ear-contents/C TiWebServicesAPI-exp.war/CTiWebServicesAPI.cfc
Line: 75; Column: 3
ErrorCode:
message: session.WebUserUI.getWebProfileHTML() doesn't exist.
detail: Error at line 1, column 8
faultActor:
faultNode:
faultDetail:
http://xml.apache.org/axis/}hostname:124426-SECOM1
The error occurred in
C:\ColdFusion8\wwwroot\selfprojects\webservices1.cfm: line 10
8 : <cfdump var="#Session.SessionID#">
9 : <cfinvoke webservice="
http://localhost:8050/webervices.cfc?wsdl"
10 : method="getProfileHTML" returnvariable="profilehtml">
11 : </cfinvoke>
12 : <cfoutput>#getProfileHTML#</cfoutput>
Resources:
Check the ColdFusion documentation to verify that you are
using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET
CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Remote Address 127.0.0.1
Referrer
http://localhost:8500/selfprojects/
Date/Time 19-Mar-09 04:27 PM
Stack Trace (click to expand)
at
cfwebservices12ecfm1268558828.runPage(C:\ColdFusion8\wwwroot\selfprojects\webservices1.cf m:10)
coldfusion.xml.rpc.ServiceProxy$ServiceInvocationException:
Cannot perform web service invocation getProfileHTML.
at
coldfusion.xml.rpc.ServiceProxy.invokeImpl(ServiceProxy.java:230)
at
coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:143)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2222)
at
coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:417)
at
cfwebservices12ecfm1268558828.runPage(C:\ColdFusion8\wwwroot\selfprojects\webservices1.cf m:10)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at
coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at
coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:175)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
at
coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)quote:
Originally posted by:
shafiur
Need help in invoking these webservices..
There are two webservices that I am trying to invoke one
after the other:-
1) first web service "setupwebsession" sets a session. Here I
have setup the session.webuserUI to a component.
2) second service tries to get a profile but displays an
error
Here is the webservice consuming:-
<cfinvoke webservice="
http://localhost:8050/WebServices.cfc?wsdl"
method="setUpWebUserSession"
returnVariable="soo">
<cfinvokeargument name="userName"
value="[email protected]">
<cfinvokeargument name="applicationToLogIn"
value="atccWeb">
</cfinvoke>
<cfoutput> #soo# </cfoutput>
<cfdump var="#Session.SessionID#">
<cfinvoke webservice="
http://localhost:8050/WebServices.cfc?wsdl"
method="getProfileHTML" returnvariable="profilehtml">
</cfinvoke>
<cfoutput>#getProfileHTML#</cfoutput>
You are trying to output the function name instead of the
returnvariable. -
Webservice authentication problem
Web Service Authentication problem
Posted: Jun 17, 2005 3:32 PM Reply E-mail this post
Hi
I have created a portal service and exposed this service as a webservice. I am consuming this webservice in webdynpro. Portal service contains 2 simple methods putdata() and getdatat().
When i access the webservice i am getting the following error.
"javax.xml.rpc.soap.SOAPFaultException: The User Authentification is not correct to access to the Portal Service com.sap.portal.prt.soap.GlobalData or the service was not found"
My Enterprise portal server is configured for SSO to back end R/3 system. I have checked for portal service availability and it is fine.
My Webdynpro and Portal are running on different machines. EP is running on AIX with SP11.
Any help please.
Regards
NagaKishore VHi Shahab,
Can you reproduce the issue if you create 2 applications. One that exposes a secured web service and the other one the one, consumes the web service? This would help to isolate the issue and move forward in case is a bug.
Thanks,
Juan Camilo -
Hi All,
i am facing a small issue regarding dynamic invocation of webservice from another webservice....
the probelm is when i tried to invoke a simple webmethod with string return type its working as expected.. and the same method is returning an array of string it started saying cant be able to deserialze the data....
i dont understand the meaning of this exception... can any body aware of this?
Regs,
VeeruHello,
When you have this error it is often because the JAX-RPC client does not know how to deserialize a specific XML type. In this case you have probably to use a custom mapping type.
It is quite hard to help you without any "real" information, could you please post the WSDL, the SOAP Response and the error. Also define how you exactly call the WS? JAX-RPC DII?
In the same time, you may know that we have on OTN a forum dedicated to Web Services
Regards
Tugdual Grall -
Workbench WebService Invocation: Returning response as CDATA
Hello,<br /><br />I am trying to invoke a webservice from LiveCycle Workbench. I was able to invoke the service successfully. The service returns an XML-string, so the response is coming as CDATA content. <br /><br />I am unable to extract the CDATA content from the web-service response: Here is my service response:<br /><p><br /><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br /> <soap:Body><br /> <ns1:getXMLExtractForAClaimResponse xmlns:ns1="http://service.integration.document.eams.edic.com"><br /> <ns1:out><br /><?xml version="1.0" encoding="UTF-8"?><EamsClaim><br />...................<br /></EamsClaim></ns1:out><br /> </ns1:getXMLExtractForAClaimResponse><br /> </soap:Body><br /></soap:Envelope><br /></p><br />I am struck over here. Please help me in resolving this. I created a variable "cdataList" of type List containing objects of type "document", and then I tried to get the webservice response as that list. After invocation of my service, the cdataList element is empty. <br /><br />Thanks in advance<br />Sivajee.
Here is the msg... Somehow its not getting the entire data which I posted... Even though I am putting the code, the CDATA element after <ns1:out> is not getting displayed<br /><code><br />soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br /> <soap:Body><br /> <ns1:getXMLExtractForAClaimResponse xmlns:ns1="http://service.integration.document.eams.edic.com"><br /> <ns1:out> XML STRING<br /><br /></ns1:out><br /> </ns1:getXMLExtractForAClaimResponse><br /> </soap:Body><br /></soap:Envelope><br /></code>
-
WebService invocation - variable @namespace errro
Hi,
I am getting the below error. (Variable @namespace is not
defined)
I do not know webservices, I am just trying to access a WSDL
file from
flex. Can you please let me know why Flex shows this error?
On which
element is it expecting a namespace. The WSDL file I am using
already
has a targetNamespace.
Even if I do not call any methods from the webservice, I get
this error.
Even if I do only following it give me error. i.e it is
probably
tyring to invoke the webservice and check it.
<mx:WebService id="webService" wsdl="
http://someurl?wsdl">
<mx:operation name="getData"
result="resultHandler(event);"
fault="mx.controls.Alert.show(event.fault.faultString);"
/>
</mx:WebService>
Thanks in advance.
Regards,
Neha
ReferenceError: Error #1065: Variable @namespace is not
defined.
at
mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\3.0.x\frameworks\projects\rpc\sr\
c\mx\rpc\xml\SchemaLoader.as:102]
at
mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\3.0.x\frameworks\projects\rpc\src\
\mx\rpc\wsdl\WSDLLoader.as:253]
at
mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\
\mx\rpc\wsdl\WSDLLoader.as:162]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcE\
vent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:168]
at
mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::resultHandle\
r()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:191]
at
mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Respo\
nder.as:41]
at
mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\r\
pc\AsyncRequest.as:74]
at
DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rp\
c\src\mx\messaging\channels\DirectHTTPChannel.as:381]I got the same error. How did you solve your problem? By the way, on your post:
var operation:Operation = request.getOperation("getData") as Operation;
What's the definition of request? Thanks. -
hi,
Iam trying to get my query webservice to function, but iam
having severe problems. No information can be found to solve my
problem, so Iam hoping some here can assist me in solving my
problem.
Iam getting errors (
RPC Fault faultString="Unexpected parameter 'queryResponse'
found in input arguments." faultCode="Client.Input"
faultDetail="null"]
at
mx.rpc.soap::Operation/mx.rpc.soap:Operation::createFaultEvent()
at mx.rpc.soap::Operation/
http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
at mx.rpc.soap::Operation/send()
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc.soap.mxml::Operation/send()
at AlfrescoQuery/___Button1_click()
I have tried everything I can think of, but to no avail...
below is my flex code Iam using:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
public function queryResultHandler(event:ResultEvent):void {
]]>
</mx:Script>
<mx:WebService id="alfServ"
wsdl="
http://myalfresco/alfresco/wsdl/repository-service.wsdl"
endpointURI="http:/myalfresco8/alfresco/api/RepositoryService">
<mx:operation name="query"
result="queryResultHandler(event)">
<mx:request>
<store>
<ns1:scheme xmlns:ns1="
http://www.alfresco.org/ws/model/content/1.0">workspace</ns1:scheme>
<ns2:address xmlns:ns2="
http://www.alfresco.org/ws/model/content/1.0">SpacesStore</ns2:address>
</store>
<query>
<ns3:language xmlns:ns3="
http://www.alfresco.org/ws/model/content/1.0">lucene</ns3:language>
<ns4:statement xmlns:ns4="
http://www.alfresco.org/ws/model/content/1.0">TEXT:'alfresco
development team'</ns4:statement>
</query>
<includeMetaData>false</includeMetaData>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Button x="88" y="45" label="Button"
click="alfServ.query.send()"/>
</mx:Application>
But this does not work... HELP ME PLEASE....
below included soap calls for the request and the response
that is recieved....
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<query xmlns="
http://www.alfresco.org/ws/service/repository/1.0">
<store>
<ns1:scheme xmlns:ns1="
http://www.alfresco.org/ws/model/content/1.0">workspace</ns1:scheme>
<ns2:address xmlns:ns2="
http://www.alfresco.org/ws/model/content/1.0">SpacesStore</ns2:address>
</store>
<query>
<ns3:language xmlns:ns3="
http://www.alfresco.org/ws/model/content/1.0">lucene</ns3:language>
<ns4:statement xmlns:ns4="
http://www.alfresco.org/ws/model/content/1.0">TEXT:'alfresco
development team'</ns4:statement>
</query>
<includeMetaData>false</includeMetaData>
</query>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE
<soapenv:Envelope
xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<queryResponse
xmlns="
http://www.alfresco.org/ws/service/repository/1.0">
<queryReturn>
<querySession>
52dbfef8-306d-11dc-9782-6160ed7fcc06
</querySession>
<resultSet>
<ns1:rows
xmlns:ns1="
http://www.alfresco.org/ws/model/content/1.0">
<ns1:rowIndex>0</ns1:rowIndex>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/system/1.0}store-protocol
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>workspace</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}modifier
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>admin</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}name
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>SampleContent.txt</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/system/1.0}node-dbid
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>2121</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}content
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
contentUrl=store://2007/7/12/13/42/05a414e3-306d-11dc-9782-6160ed7fcc06.bin|mimetype=text /plain|size=68|encoding=UTF-8|locale=en_US_
</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}modified
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
2007-07-12T13:42:51.895+02:00
</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}created
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
2007-07-12T13:42:51.286+02:00
</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/system/1.0}store-identifier
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>SpacesStore</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/system/1.0}node-uuid
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
054727cd-306d-11dc-9782-6160ed7fcc06
</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}creator
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>admin</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}path
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/ content/1.0}sample_folder/{http://www.alfresco.org/model/content/1.0}sample_content
</ns1:value>
</ns1:columns>
<ns1:score>0.38761</ns1:score>
<ns1:node>
<ns1:id>
054727cd-306d-11dc-9782-6160ed7fcc06
</ns1:id>
<ns1:type>
http://www.alfresco.org/model/content/1.0}content
</ns1:type>
</ns1:node>
</ns1:rows>
<ns2:totalRowCount
xmlns:ns2="
http://www.alfresco.org/ws/model/content/1.0">
1
</ns2:totalRowCount>
</resultSet>
</queryReturn>
</queryResponse>
</soapenv:Body>
</soapenv:Envelope>Anybody any idears ???????????
-
RESTful webservices invocation from OSB.
Can some one please explain the best way to develop the OSB service to invoke the Restful services.
1. Only proxy service is enough to handle the request, no need of business service?
2. when moving the code from one env to other, we use a business service to update endpoint url which is the common approach we generally follow, to make the osb service loosely coupled. how to use the business service when invoking the restservice? does we have the base uri value in the transport url and will get appended with the relative-uri value which we frame as part of the request in the outbound variable in the proxy settings?
3. when invoking the rest service do we need to append all the request message to the url itself or the request can be passed separately as request body and the main rest uri will have only the key fields as part of the relative-uri?
4. If we receive huge request message does the URL support the entire request?
5. how the response/error will be returned when calling the Restful webservice?
I am assuming this appraoch. Can some one please confirm does this approach works with RESTful service invocation from OSB.
Request processing:
Source System request-> Proxy Service -> Transformation to end system specific -> Business service (with base-uri -> http://mainappl.com/web/cmr/{relative-uri from outbound transport}) -> endsystem
Response processing:
endsystem Response/Error -> Business Service -> Proxy Service -> transformation to source system specific -> source system.
Please advice which is the best approach to follow while invoking the RESTful webservices from OSB.
Thanks..
Edited by: user12679330 on May 5, 2010 4:33 AM
Edited by: user12679330 on May 5, 2010 5:00 AMHi,
Thanks for the update. Can you please explain the above mentioned approach works or how it should be?
I have one requirement, can some one explain the implementation for this:
I have one element which is of type unbound. I need to map this element to a single enelement value by separating each element value with a ;, before that I need to check wheteher this element(s) are present in the request then need to appened all these element values to a single element and the end of this element need to append default values.
Scenario:
<student>
<name>asd</name>
<address>
<street>street1</street>
<street>street2</street>
<street>street3</street>
||
||
</address>
to be mapped it to:
<student>
<field name="NAME">asd</field>
<field name="ADDRESS">street1;street2;street3;default1;default2;default3</field>
</student>
Here need to check if street names are present in the request xml, if yes ned to assign it to ADDRESS as mentioned above if street names present or not need to append the default values at the end to the ADDRESS field.
Thanks in advance. -
Hi,
I have used the NWDS Wizard to generate a webservice proxy. The Service is "SAP Server" and the runtime is "SAP NetWeaver". I have a service project with the EJBs and a surrounding EAR project to deploy the webservice.
I have generated a webservice-interface. One
@WebMethod(operationName="getById")
and one
@WebMethod(operationName="getDummy")
getDummy only returns new String();
this works fine. But getById calls a ABAP Webservice via the generated proxy. I inject the reference:
@WebServiceRef(name="ZALINKRFC_Service")
ZALINKRFC_Service service;
get the port
ZALINKRFCWD port = service.getPort(ZALINKRFCWD.class);
and call port.rfcfunction(...)
I then get the error
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 20 counts of IllegalAnnotationExceptions
com.sap.document.sap.rfc.functions.ALINKRFCTABLEGET is an interface, and JAXB can't handle interfaces. this problem is
related to the following location: at com.sap.document.sap.rfc.functions.ALINKRFCTABLEGET
com.sap.document.sap.rfc.functions.ALINKRFCTABLEGET does not have a no-arg default constructor. this problem is
related to the following location: at com.sap.document.sap.rfc.functions.ALINKRFCTABLEGET
com.sap.document.sap.rfc.functions.TABLEOFTBL1024 is an interface, and JAXB can't handle interfaces
I have absolutely no idea what the problem is. All the mentioned classes were automatically generated by NWDS.
any ideas?
thanks in advancePlease try with IP
Regards, Anilkumar -
Hi guys
I m facing a strange problem here ...i initiate the 1st process named "Process A" from the BPEL test console...then it initates other processes ..so on and so forth ..after sometime i used xsl to change the root element so that i can again call "Process A " which expects a root element named "OrderBO" ...i changed the root using the xsl from "FaultType" to "OrderBO" ..and stringified it and sent it to java embedding which uses locator API to call the "Process A" again ..During the second initiation ..i can see both the xml inputs are correct (in d first and 2nd initiation)..but 2nd time the parsing fails...it seems there is no data or smthn ...it simply cant parse anythn..but i can see the xml as input with data in it ...
did anyone of u face this problem?
Please suggest something
Thank s
Edited by: AndyC1 on Sep 21, 2009 4:53 AM"univold" <[email protected]> wrote in
message
news:gp8447$t6b$[email protected]..
> Hello, All.
> I faced with the strange problem regarding getting
result of Method
> invocation
> on the RemoteObject.
> I have BlazeDS on server side configured and everything
was working fine
> when
> server returns a Collection of Objects.
> But now I'm trying to receive one Object, defined on
server side as:
>
>
@ActionScript( bindable = true)
> public class PageHolder<T,U> {
>
> private List<T> valueList;
> private U firstRowId;
> private U lastRowId;
> // ...... getters setters
> }
>
> On client I have the mapped object:
>
>
[Bindable]
> [RemoteClass(alias="com.dummy.PageHolder")]
> public class PageHolder extends PageHolderBase
> {
> private var _firstRowId : Object;
>
> private var _lastRowId : Object;
>
> private var _valueList : ArrayCollection;
> }
>
> The remote object defenition is:
>
>
<mx:RemoteObject id="searchService"
destination="searchService"
> fault="faultHandler(event);">
> <mx:method name="findCustomers"
> result="findCustomersResult(event)"
> fault="faultHandler(event);"/>
> </mx:RemoteObject>
>
> and methods are:
>
>
public function findCustomers():void {
> try {
> searchService.searchCustomerData();
> } catch (e:Error) {
> Alert.show("after: " + e.message );
> }
> }
>
> public function
> findCustomersResult(event:ResultEvent):void {
> Alert.show("result!");
> page = event.result as PageHolder;
> }
>
> So, the problem is that findCustomersResult function is
never called.
> At the same time I have no errors in any logs, and I see
debug messages
> from
> BlazeDS, that everything is fine:
Is your faultHandler code called? -
Multithread remote method invocation problem
Hello all
I have simple method that is entry point of CORBA remote invocation method
Inside it I have some kind of Logic I need to perform the this logic is inside method and I like
That each method that performs logic will be executed in its own thread ( from thread pool )
this method also returns parameters by reference back to the server .
here is example:
public boolean RemothMethod(Object obj1,Object obj2){
//this is where I allocate thread from thread pool to invoke the logic method
ThreadPool.getTask(LogicMethod(Object obj1,Object obj2));
}But the problem I have here that I can get several "RemothMethod" calls
And the returned Parameters can be from the wrong thread call .
My question is how can I force the right thread to return the right parameters to the "RemothMethod" callI have simple method that is entry point of CORBA
remote invocation method
Inside it I have some kind of Logic I need to perform
the this logic is inside method and I like
That each method that performs logic will be executed
in its own thread ( from thread pool )Why? Each remote method is already being executed in its own thread.
//this is where I allocate thread from thread pool
l to invoke the logic method
ThreadPool.getTask(LogicMethod(Object obj1,Object obj2));What are these APIs?
But the problem I have here that I can get several
"RemothMethod" calls
And the returned Parameters can be from the wrong
thread call . Something wrong with the ThreadPool API you seem to have written.
My question is how can I force the right thread to
return the right parameters to the "RemothMethod" callGet rid of it and execute whatever you need to execute directly in the remote method body. There is no advantage to what you're trying to do. You already have a thread per concurrent client executing the remote method; you're trying to stall those threads and create yet more threads from an evidently non-working ThreadPool. This seems quite pointless. -
Hi,
I have a problem regarding the naming of WebServices in the WAS. I need to know if i´m right in this:
1. When creating WebServices in the ABAP stack using the ABAP Workbench i can only develop WebServices who starts whith an "Z" or an "Y". I.ex. Y_GetCustomerName.
2. When developing WebServices on the JAVA Stack i´m free to call my WebServices anything i like i.ex GetCustomerName.
Could anyone confirm this two statements? I need to know because even though it seems to bee a small problem it´s in our organisation a big problem if we cannot name our WebServices as we like!
Regards
JakobYes i can reserve an Namespace, but it´s not enough... It´s not the "Z" who are the problem but rather that the Service should allways begin with the same string.
I need to develop services like:
GetCustomerName
CreateFinanceDocument
BlockCustomerAccount
I´m pretty sure that i cannot do it in the ABAP stack - but if i can do it the JAVA stack everything is fine for me - i just need a confirmation on that :-).
Jakob
Maybe you are looking for
-
Returning a string from one class to another
I have a file from where i creating an object of another class and calling the fuctionsl This is how i am doing public login() String input =new String (passwordField.getPassword()); input= input.trim(); tempuser= userField.getText();
-
E52- how to view the pictures in your gallery as a...
you can only view the pictures in that n95 circle style - how do you make it like the thumbnails on a pc? You could do this before on the 6300 It really is annoying, as i have a few hundred pictures, and to find one - it takes ages, as i have to scro
-
How can i find and finish downloading a tv show i purchased
does anyone know how to find and finish downloading a item i recently bought.anyone? Message was edited by: shugochara3000
-
LMS 2.6 User Tracking - Application error: URN_NOT_FOUND
Hi, When I run a quick report in Campus Manager (User Tracking > Reports) I get the following error appearing in a window: Application error: URN_NOT_FOUND : urn "ogs_server_urn" : Not found !!. Could anybody help me? I attach the ctm_config.txt fi
-
GUI - Displaying system.out
Hello I am creating a database application in Java. When an user enters an invalid query several of my class-methods call the System.out.println method. I was wondering if there was an easy way of redirecting all these print statements to a JTextArea