Ws:webservices, variable wsdl problem
Hi all.
I pass a url variable when i call my swf. like this
quote:
myfile.swy?wsdlurl=http://......
and I get back the value in my flex app by :
quote:
[Bindable]public var urlwsdl:String;
urlwsdl = mx.core.Application.application.parameters.wsdlurl;
When I make a Alert whis the value of urlwsdl, i have the
good URL
I call it in my webservices call like this :
quote:
<mx:WebService id="WS" wsdl="{urlwsdl}" ...
And thats no work.
But if i put directely the value and no the variable, all
work fine ..
Some idea ?
if i define my urlwsdl varaible like this :
quote:
[Bindable]public var wsdlurl:String;
urlwsdl = 'url....';
wsdl="{urlwsdl}"
thats not work
If i define it like this :
quote:
[Bindable]public var wsdlurl:String = 'url...';
wsdl="{urlwsdl}"
Thats work .....
I realy dont understand ... why ...
pff .. impossible to make wsdl dynamic ?
Similar Messages
-
"Deployments- Webservice- Configuration- WSDL" displays NPE in WLS 9.0
hello,
please, does anybody know a solution to the NullPointerException in WebServiceConfigurationWsdlAction.execute()? the exception is displayed when i click on the "WSDL" link found on a webservice's "Configuration" tab in the admin console.
i'm running WLS 9.0 on Solaris 9 SPARC. i successfully built and ran the "[url http://127.0.0.1:7001/examplesWebApp/examples/src/examples/webservices/jws_basic/simple/instructions.html]Creating a Web Service Using JWS Metadata Annotations" example. i used all of the example's source + build.xml file unchanged from when they were originally installed.
with the wl_server admin server up and running, i successfully built and ran the example with the following steps:
prompt# cd $WL_HOME/samples/server/examples/src/examples/webservices/jws_basic/simple
prompt# ant
all:
BUILD SUCCESSFUL
Total time: 1 minute 19 seconds
prompt# ant run
run:
sayHello:Hi there!
[java] Got result: Here is the message: 'Hi there!'
BUILD SUCCESSFUL
Total time: 25 seconds
prompt# ant run.webapp
run.webapp:
BUILD SUCCESSFUL
Total time: 4 seconds
prompt# sayHello:Hello JWS WebService!the [url http://localhost:7001/examplesWebApp/JWS_WebService.jsp]JWS_WebService.jsp page successfully launches in the browser. and [url http://localhost:7001/examplesWebApp/JWS_WebService.jsp]that page successfully invokes the SimpleImpl webservice and displays the response as expected. given all of the above, i assume that the example has been deployed correctly.
however, the problem is: when i attempt to view the webservice's wsdl by following the instructions listed in the "[url http://localhost:7001/console-help/help/doc/en-us/com/bea/wlserver/taskhelp/webservices/ViewWsdl.html]View the WSDL of a Web Service" docs, i get a NullPointerException in WebServiceConfigurationWsdlAction.execute() (see below for full stacktrace). the exception stacktrace is displayed in the admin console when i click on the "WSDL" link found on the webservice's "Configuration" tab.
thanks in advance for your help.
========================================
<Mar 13, 2007 11:24:25 AM GMT> <Error> <Console> <BEA-240003> <Console encountered the following error Unexpected exception occured in page flow request processor:
java.lang.NullPointerException
at com.bea.console.actions.webservice.WebServiceConfigurationWsdlAction.execute(WebServiceConfigurationWsdlAction.java:131)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:1948)
at com.bea.console.internal.ConsolePageFlowRequestProcessor.processActionPerform(ConsolePageFlowRequestProcessor.java:184)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:590)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:840)
at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:607)
at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:135)
at com.bea.console.internal.ConsoleActionServlet.process(ConsoleActionServlet.java:241)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at com.bea.console.internal.ConsoleActionServlet.doGet(ConsoleActionServlet.java:130)
at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:927)
at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:571)
at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.renderInternal(ScopedContentCommonSupport.java:222)
at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.render(StrutsStubImpl.java:102)
at com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:338)
at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:401)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:665)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:151)
at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:206)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:146)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:327)
at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:190)
at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:156)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:141)
at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:206)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:125)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3020)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)hello,
please, does anybody know a solution to the NullPointerException in WebServiceConfigurationWsdlAction.execute()? the exception is displayed when i click on the "WSDL" link found on a webservice's "Configuration" tab in the admin console.
i'm running WLS 9.0 on Solaris 9 SPARC. i successfully built and ran the "[url http://127.0.0.1:7001/examplesWebApp/examples/src/examples/webservices/jws_basic/simple/instructions.html]Creating a Web Service Using JWS Metadata Annotations" example. i used all of the example's source + build.xml file unchanged from when they were originally installed.
with the wl_server admin server up and running, i successfully built and ran the example with the following steps:
prompt# cd $WL_HOME/samples/server/examples/src/examples/webservices/jws_basic/simple
prompt# ant
all:
BUILD SUCCESSFUL
Total time: 1 minute 19 seconds
prompt# ant run
run:
sayHello:Hi there!
[java] Got result: Here is the message: 'Hi there!'
BUILD SUCCESSFUL
Total time: 25 seconds
prompt# ant run.webapp
run.webapp:
BUILD SUCCESSFUL
Total time: 4 seconds
prompt# sayHello:Hello JWS WebService!the [url http://localhost:7001/examplesWebApp/JWS_WebService.jsp]JWS_WebService.jsp page successfully launches in the browser. and [url http://localhost:7001/examplesWebApp/JWS_WebService.jsp]that page successfully invokes the SimpleImpl webservice and displays the response as expected. given all of the above, i assume that the example has been deployed correctly.
however, the problem is: when i attempt to view the webservice's wsdl by following the instructions listed in the "[url http://localhost:7001/console-help/help/doc/en-us/com/bea/wlserver/taskhelp/webservices/ViewWsdl.html]View the WSDL of a Web Service" docs, i get a NullPointerException in WebServiceConfigurationWsdlAction.execute() (see below for full stacktrace). the exception stacktrace is displayed in the admin console when i click on the "WSDL" link found on the webservice's "Configuration" tab.
thanks in advance for your help.
========================================
<Mar 13, 2007 11:24:25 AM GMT> <Error> <Console> <BEA-240003> <Console encountered the following error Unexpected exception occured in page flow request processor:
java.lang.NullPointerException
at com.bea.console.actions.webservice.WebServiceConfigurationWsdlAction.execute(WebServiceConfigurationWsdlAction.java:131)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:1948)
at com.bea.console.internal.ConsolePageFlowRequestProcessor.processActionPerform(ConsolePageFlowRequestProcessor.java:184)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:590)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:840)
at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:607)
at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:135)
at com.bea.console.internal.ConsoleActionServlet.process(ConsoleActionServlet.java:241)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at com.bea.console.internal.ConsoleActionServlet.doGet(ConsoleActionServlet.java:130)
at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:927)
at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:571)
at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.renderInternal(ScopedContentCommonSupport.java:222)
at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.render(StrutsStubImpl.java:102)
at com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:338)
at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:401)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:665)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:677)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:151)
at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:206)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:146)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:327)
at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:190)
at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:156)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:141)
at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:206)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:125)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3020)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179) -
Error after import external webservice(RFC) wsdl url to Process Composer
Hi all,
I try to use RFC webservice in my BPM as below:
1. Expose RFC as webservice using CAF (import external service RFC and then create application service use this external service)
2. Define Destination in NWA.
3. Create a Process Composer project, and import the external webservice(RFC) wsdl file as service interface in the project.
After importing, i get error : the port type specified for the ...binding is undefined. Check port type name and ensure it is defined.
If i import another external service, not RFC (such as business object), there is no error.
My system is NWCE 7.11
Thanks in advance,
Sinh.
Edited by: Sinh Nguyen Van on Jul 20, 2009 8:29 AMHi Bharath,
Below is content of wsdl url and error message, thanks
Error message:
The 'zfm_rfc_caf_as' port type specified for the 'zfm_rfc_caf_asBinding' binding is undefined. Check the 'zfm_rfc_caf_as' port type name and ensure it is defined.
wsdl url :
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as" xmlns:b0="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as">
<import namespace="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as" location="http://sinhnv-lap:50000/zfm_rfc_caf_as/zfm_rfc_caf_asBeanImpl?wsdl=binding&mode=ws_policy" />
- <service name="zfm_rfc_caf_as">
- <port name="zfm_rfc_caf_asBindingPort" binding="b0:zfm_rfc_caf_asBinding">
<address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="http://sinhnv-lap:50000/zfm_rfc_caf_as/zfm_rfc_caf_asBeanImpl" />
</port>
</service>
</definitions>
Edited by: Sinh Nguyen Van on Jul 22, 2009 4:18 AM -
Cannot pass parameter to webservice using wsdl
cannot pass parameter to webservice using wsdl
I write code the following:
step 1
-->
DECLARE
SERVLET_NAME VARCHAR2(32) := 'orawsv';
BEGIN
DBMS_XDB.deleteServletMapping(SERVLET_NAME);
DBMS_XDB.deleteServlet(SERVLET_NAME);
DBMS_XDB.addServlet(NAME => SERVLET_NAME,
LANGUAGE => 'C',
DISPNAME => 'Oracle Query Web Service',
DESCRIPT => 'Servlet for issuing queries as a Web Service',
SCHEMA => 'XDB');
DBMS_XDB.addServletSecRole(SERVNAME => SERVLET_NAME,
ROLENAME => 'XDB_WEBSERVICES',
ROLELINK => 'XDB_WEBSERVICES');
DBMS_XDB.addServletMapping(PATTERN => '/orawsv/*',
NAME => SERVLET_NAME);
END;
step 2
--> CREATE USER test IDENTIFIED BY test QUOTA UNLIMITED ON users;
step 3
--> GRANT CONNECT,CREATE TABLE, CREATE PROCEDURE TO test;
step 4
--> GRANT XDB_WEBSERVICES TO test
step 5
--> GRANT XDB_WEBSERVICES_OVER_HTTP TO test
step 6
--> GRANT XDB_WEBSERVICES_WITH_PUBLIC TO test
step 7
-->
SELECT dbms_xdb.getftpport() FROM dual;
SELECT dbms_xdb.gethttpport() FROM dual;
exec dbms_xdb.setHttpPort(8080);
exec dbms_xdb.setFtpPort(2100);
step 8
-- Double check
host lsnrctl STATUS
SET head off
-- Valid?
SELECT * FROM dba_registry WHERE comp_id='XDB';
SET head ON
connect test/test;
CREATE OR REPLACE FUNCTION FACTORIAL_I(N PLS_INTEGER)
RETURN PLS_INTEGER
IS
n_result number;
BEGIN
IF N > 1 THEN
n_result := N * FACTORIAL_I(N - 1);
RETURN(n_result);
ELSE
RETURN(1);
END IF;
END;
WSDL Output:
http://localhost:8080/orawsv/TEST/FACTORIAL_I?wsdl
output picture: http://www.picza.net/show.php?id=20120429vlxdlFdvFPdvF134795
I try pass prameter by http://localhost:8080/orawsv/TEST/FACTORIAL_I?SBINARY_INTEGER-FACTORIAL_IInput=5
but error <ErrorNumber>ORA-31011</ErrorNumber>
Edited by: 930927 on 29 เม.ย. 2555, 9:02 น.Using something like SoapUI or do it via PL/SQL as shown here: Re: Ora-31011 with a very, very simple native webservice
-
Webservice from WSDL - Endpoint URL unchanged
Hi all,
I'm following the JDeveloper tutorial here....
http://www.oracle.com/technology/products/jdev/11/cuecards111/j2ee_set_17/ccset17_ALL.html
...in this the endpoint URL is left as http://www.example.com - this gets transformed into....
http://localhost:7101/ServiceFromWsdl-Project1-context-root/RatingServicePort
...I believe at the point the webservice is generated from the WSDL.
I have a couple of questions....
1. Where does it get the localhost & 7101 from - at the point of generating the webservice how does it know where I want to deploy it ?
2. When I generate my webservice from WSDL my URL is left unchanged - it deploys ok to my SOAServer (not the JDeveloper integrated one) but not with the endpoint I used in the WSDL - how do I find this endpoint ?
Thanks
MarkFOK, I managed to find the endpoint by hacking a few bits of information together....I assumed the port number because I knew the HTTP port number for my SOAServer, the context root is displayed in the deployment log, I then tagged on the Port Name from my WSDL .... et voila !
Still begs the questions....
1. Is it supposed to overwrite the URL in my original WSDL ?
2. Is there no easier way of finding out the endpoint for a deployed WS ?
Thanks
MarkPF -
How to identify the bind variable peeking problem?
How to identify the bind variable peeking problem whether my db hitting or not and how to resolve it?
currently we are doing the dbms_stat of application schema's with gather auto option and i hope this option we take the histogram stats also. Is there any option to improve it and its highly transactions oltp env of 11g.What is your exact 4 digits Oracle version ?
Bind peeking issues are supposed to be solved with adaptative cursor sharing in 11.1 and 11.2:
11.1 http://download.oracle.com/docs/cd/B28359_01/server.111/b28274/optimops.htm#sthref919.
11.2 http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/optimops.htm#PFGRF94588
which says also:
>
Adaptive cursor sharing is enabled for the database by default and cannot be disabled. Note that adaptive cursor sharing does not apply to SQL statements containing more than 14 bind variables.
>
Edited by: P. Forstmann on 10 nov. 2011 13:50 -
Wsdl problem with jwsc generated webservice
Hi,
I am generating a new webservice with the jwsc command and annotations (only one method at this point, "getDescripteurCourt"). The war file is correctly generated and I can deploy it without problenmes in WLS 10.0
However, when use the webservice test page, I receive the following error
http://localhost:7001/communWS/communwebservices?WSDL
failed due to org.jdom.IllegalAddException: The namespace xmlns:="http://saac.ssq.local/commun" could not be added as content to "getDescripteurCourt": The namespace prefix "" collides with the element namespace prefix
Here is my wsdl file generated by the jwsc command
<?xml version='1.0' encoding='ISO-8859-1'?>
<s0:definitions name="communwebservicesDefinitions" targetNamespace="http://saac.ssq.local/commun" xmlns="" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://saac.ssq.local/commun" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/">
<s0:types>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://saac.ssq.local/commun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="getDescripteurCourt">
<xs:complexType>
<xs:sequence>
<xs:element name="nomPhysique" type="xs:string"/>
<xs:element name="codeValeur" type="xs:string"/>
<xs:element name="env" type="xs:string"/>
<xs:element name="lang" type="xs:string"/>
<xs:element name="owner" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getDescripteurCourtResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</s0:types>
<s0:message name="getDescripteurCourt">
<s0:part element="s1:getDescripteurCourt" name="parameters"/>
</s0:message>
<s0:message name="getDescripteurCourtResponse">
<s0:part element="s1:getDescripteurCourtResponse" name="parameters"/>
</s0:message>
<s0:portType name="communwebservices">
<s0:operation name="getDescripteurCourt" parameterOrder="parameters">
<s0:input message="s1:getDescripteurCourt"/>
<s0:output message="s1:getDescripteurCourtResponse"/>
</s0:operation>
</s0:portType>
<s0:binding name="communwebservicesSoapBinding" type="s1:communwebservices">
<s2:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<s0:operation name="getDescripteurCourt">
<s2:operation soapAction="" style="document"/>
<s0:input>
<s2:body parts="parameters" use="literal"/>
</s0:input>
<s0:output>
<s2:body parts="parameters" use="literal"/>
</s0:output>
</s0:operation>
</s0:binding>
<s0:service name="communwebservices">
<s0:port binding="s1:communwebservicesSoapBinding" name="communwebservices">
<s2:address location="http://localhost:7001/commun/communwebservices"/>
</s0:port>
</s0:service>
</s0:definitions>
Can anyone help me with this? I dont understand where this exception is coming from.
I you need more informaion, just ask I will be glad to provide you more details.
Thank you very much
Jean-Philippe Leblondwebservice.operation.lastResult["return"];
If you are doing that in a result handler, do not use
lastResult, which is intended for binding espressions only. Use
event.result.
Tracy -
WSDL Problem (Sender WebService)
Hi,
Our scenario is Webservice to SAP, recently as per the new requirement 2 new fields were added to structure. Earlier WSDL was given from ID(Tools --> Define Webservice) , now similarily after addition of 2 fields in structure a new WSDL was generated from ID again & was given to client.
While generating WSDL i had used URL for Integration Engine, bypassed adapter engine , first WSDL was also given in similar way.
Now while testing this scenario two new feilds are not getting populated in payload. Webservices system is sending that values but not getting reflected in PI.
Already tried refreshing cache, complete cache refresh but no use.
Can anyone give some suggestions, it will be helpful in resolving issue ..
Regards,
Vinod.Couple of hints.
After generating the WSDL with new fields added, check whether those two new fields are reflected in the wsdl. If so, then your WSDL generation is right.
Remove the old versions and maintain one wsdl always. Also tell your partner to reference the latest WSDL.
Test using SOAPUI or XMLSPY loading the lastest WSDL and see whether you see latest request or response structure.
If you are using version PI 7.1 or above , the easy way to do is go to sender agreement and pick display wsdL option and generate it. You dont manually input all the interface name, namespace details.
Hope this help. -
WSDL problems with webservices deployment
First, the problem: I need either to 1) be able to include a WSDL file as part of my ear-file deployment and have that WSDL be presented to consumers if they seek to browse the wsdl, or 2) get the dynamic WSDL generation to show public, https urls for schemaLocation and soap:address locations in the dynamically-generated WSDL.
Configuration: Apache 2.2.3 proxy server receiving https requests and passing them back to a WebLogic 10.3.5 instance running on the internal network. The WebLogic instance has several applications running on it, and these applications make SOAP web service invocations between each other. Use case: public consumer makes https web service invocation to a publically-available url to invoke Service A, which in turn invokes a web service, Service B, running on the same WebLogic instance. The invocation from Service A to Service B is a localhost invocation since it's behind the firewall.
What I'm seeing: if I browse the WSDL for Service A from the public area, the wsdl displays the server name and port in the schemaLocation and soap:address urls in the wsdl file. I, of course, don't want this, as I want the wsdl to display the publicly-browseable values (e.g. "https://www.seenbypublic.com:443/ws/UtilityService..."). So, I configure the server via the WebLogic admin console and specify a "Frontend Host" of www.seenbypublic.com, and a Frontend HTTPS Port of 443. I set the "WebLogic Plugin Enabled" flag via domain > Web Applications. I configure Apache (which already has the WL module installed) to use the following parameter "RequestHeader set WL-Proxy-SSL true" and restart everything. The server location changes in the dynamically-generated wsdl, but the server port does not (i.e. the urls in the wsdl are now http://www.seenbypublic.com:80/ws/UtilityService... (note the lack of SSL designation). Another problem is that now my same-server web service invocations that were taking placing using "localhost" are now using "www.seenbypublic.com" so instead of a local-box invocation, the request is coming out into the public domain and then back to the server, which is highly inefficient.
So.... ideally, I'd be able to leave all the WebLogic "Frontend" settings alone, not mess with the WL plugin in Apache, and simply provide a wsdl url to my application to display when generating it's wsdls (or just let me provide the entire wsdl file as a resource). Is there any way to do that?
Assuming no, what do I need to do to get the proper reflection of SSL designation in a dynamically-generated wsdl file? And - how can I tell WL to leave the "localhost" invocations alone?
How's that for a Friday-afternoon problem?Hello,
thank you for your answer. It was my mistake, I discribe the problem very bad.
When i call the function get_frob(). Netbeans goes in the function and run through the end but nothing happened
onMouseClicked: function( e: MouseEvent ):Void {
test=Authentikation_Frob.get_frob();and in my if clausel there will be a wrong output! After the output my programm go back to the function get_frob() and then make the request and go back to the if clausel. Now everything ist correct. But why does my programm need 2 runs ????thats not correct!!
Thank you!!
if (test==true)
var Authentikation_Link:HTTP_Authentication_Link=new HTTP_Authentication_Link();
link=Authentikation_Link.get_link();
var uri = new java.net.URI("{link}");
var desktopClazz = java.lang.Class.forName("java.awt.Desktop");
var getDesktopMethod = desktopClazz.getMethod("getDesktop");
var desktop = getDesktopMethod.invoke(null);
var browseMethod = desktopClazz.getMethod("browse", [uri.getClass()] as java.lang.Class[]);
browseMethod.invoke(desktop, uri);
else
fehler_ausgabe.visible=true;
fehler_ausgabe.content="Fehler {Authentikation_Frob.frob_fehler} {Authentikation_Frob.frob_hilfe}";
}Edited by: Esco24 on Aug 10, 2009 1:02 AM -
Wsdl problem - why do i need to name output vars?
I have a web service that is working (WSDL:
http://getanagram.com/wsdevel.wsdl).
I can access it from ColdFusion but not in the standard way. See
below for examples. The problem is that I don't want to specify the
output variables up front inside the call to the web service. I
want the two output variables to go into a single struct like all
the coldfusion documentation implies.
I'd like to be able to access it this way:
<cfinvoke
webservice="
http://getanagram.com/wsdevel.wsdl"
method="GetTypeScores"
returnvariable="foo">
<cfinvokeargument name="text" value="123 456 7890"/>
</cfinvoke>
Output: <cfoutput>#foo#</cfoutput>
But I get the error "Web service operation "GetTypeScores"
with parameters {text={123 456 7890}} could not be found."
Accessing it this way works PERFECTLY without errors but
requires I name the output variables in the call, which I do not
want:
<cfscript>
ws = CreateObject("webservice", "
http://getanagram.com/wsdevel.wsdl");
ws.GetTypeScores(text='123 456
7890',ContactScore="ContactScore",EventScore="EventScore");
</cfscript>
Contact Score: <cfdump var="#ContactScore#"
/><br>
Event Score: <cfdump var="#EventScore#" />
Exactly why is this happening?aparsons wrote:
> I have a web service that is working (WSDL:
>
http://getanagram.com/wsdevel.wsdl).
I can access it from ColdFusion but not in
> the standard way. See below for examples. The problem is
that I don't want to
> specify the output variables up front inside the call to
the web service. I
> want the two output variables to go into a single struct
like all the
> coldfusion documentation implies.
>
> I'd like to be able to access it this way:
>
> <cfinvoke
> webservice="
http://getanagram.com/wsdevel.wsdl"
> method="GetTypeScores"
> returnvariable="foo">
> <cfinvokeargument name="text" value="123 456
7890"/>
> </cfinvoke>
> Output: <cfoutput>#foo#</cfoutput>
The web service requires those parameters so you need to send
them
(nothing wrong with CF here):
<element name="TypeScores">
<complexType>
<sequence>
<element name="ContactScore" type="xsd:int" minOccurs="1"
maxOccurs="1"/>
<element name="EventScore" type="xsd:int" minOccurs="1"
maxOccurs="1"/>
</sequence>
</complexType>
</element>
<mack /> -
Defect while invoking a Webservice using WSDL
Hi all,
I am trying to invoke a web service by creating a web service data source using the wsdl of the web service.
I dragged the web service data control on to my jspx page as ADF Parameter form. The web service, once gets
invoked should insert a row in the data base using the pay load that we send with the request.
The application is running with out any errors but when I submit the data it is getting inserted 2 times into the database
where the web service should insert only once. I tried sending the payload to the webservice manually then it inserted
only once. I am unable to find the problem.. Kindly help me on this.
Thanks & Regards,
Phani.Hi Frank,
I did that but still the problem persists. Actually what I did was like this.
I have created a webservice proxy and a datasource using the wsdl of the proxy which has a metod "*CreateReference*" in it.
inside this create reference there is a "*parameters*" folder in which I have all the payload parameters and
a "*return*" method which has a table with statuscode and statusmessage attrubutes that gives the result
which would be a "Success" or a "Fault".
I have created a jspx page with three layout and on First layout I have dragged all the fields that are there
in the parameters folder as ADF Inputtext with Lable and I have dragged the CreateReference method from the data source as a ADF Button.
I have dragged the table that is there in the result on to the second half of the jspx page.
when I run this and click on the button after entering the info into the lables it should create a row in the database.
in my case it is creating row twice where it should create only once.
In my page definition I have default(deferred) as the refresh for all the iterators.???
Can you kindly help me on this...
Thanks,
Phani.
Edited by: 887737 on Jan 2, 2012 2:00 AM -
NullPointerException received on creating webservice from wsdl with jdevel
Hello experts,
I have the following problem when trying to create a web service from a wsdl file:
java.lang.NullPointerException
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1054)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$1.run(SpecifyWsdlPanel.java:364)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
at java.lang.Thread.run(Thread.java:662)
I'm using Jdeveloper 11.1.2.2.0.
Any ideas?
Thanks in advance and best regards!
Edited by: Carolik on 23.10.2012 01:28are you trying access web service(old) which is free of cost.
nowdays, most of the webservices(free of cost) they are re-locating the service to somewhere else
anyhow, some of the service had been stopped.
so please post which web service are you trying access(if it belongs to public).
if it is private web service dont post here -
Ccalling the webservice in WSDL based on the incoming value from source
Hi Experts,
i am doing the inteface like SAP -(Client proxy)SAPPI(SOAP)----thirdparty
i got WSDL from the third party it provides the structure like this when i was impoted through external defination
BLE
Fault
Exception code
Exception message
ADDPARTS
Add parts
Parts
Each record
Field1
Field2
Field3
Price
Usd
Field4
ADD PARTSRESPONSE
Add parts response
Status
Success
Message
DELETEPARTS
Deleteparts
Parts
Criteria
DELETEPARTSRESPONSE
Deletepartsresponse
Status
Success
Message
GETPARTS
Getparts
Parts
Criteria
GETPARTSRESPONSE
- -Getpartsresponse
Status
Parts
Eachrecord
Field1
Field2
Field3
Field4
UPDATEPARTS
Updateparts
Parts
Eachrecord
Field1
Field2
Field3
UPDATEPARTSRESPONSE
Updatepartsresponse
Status
my question is how can i call the perticular webservice suppose if the partsmaster values are new values we need to update so in that time we need to call the update parts webservice
in the same manner deleteparts and getparts
please any body suggest to me how can iachinve this one
Thanks in advance
Edited by: katakoti on Mar 23, 2011 9:35 AMTo process adapter attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding.
http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm -
JAXWS Webservice from WSDL - Compilation errors in schemas
Hello,
I am creating a webservice (Java EE1.5 JAX-WS ) from wsdl .
When I build the artifacts in JDeveloper, I get few compilation errors related to schemas.
Error(5412,31): com.service.gsrl.FingEvntType.FINGEVNTENTR.ROLEPLYR is already defined in com.service.gsrl.FingEvntType.FINGEVNTENTR
• GSRL_Vers7_Rls21.xsd and DALGSRLService.wsdl both define a ROLE_PLYR and FINGEVNTENTR element.
There could be a conflict when mapping this to Java class names.
Not sure if there is a way around in JAX-WS and if this is a bug.
Any one faced this ort of issue? How to resolve this??
Appreciate your help.
Thanks,
RamThere are few problems with your WSDL
1. targetNamespace in schema section is missing trailing '/', it should be 'http://10.25.98.19:8080/dart/'
2. in portType section 'fault' element is missing 'wsdl:' prefix, it should be '<wsdl:fault>'
3. in binding section type is wrong, it should be 'tns:DartServicesImpl'
4. Also fault element is wrongly defined in binding section it should be
<wsdl:fault name="DARTException">
<soap:fault name="DARTException" use="literal"/>
</wsdl:fault>
Hope this helps. -
WSDL Problem - Bind Method to URL
Hi Everybody!
I have problem concerning WSDL.
I have created a small webservice and used to Java2WSDL to generate the WSDL from the interfaces.
Now I can call a specific method via "http://localhost/myWebservice?method=requestSummary/paramA=...
What I want to do, is alter the WSDL in a way, so that I can call the same method via "http://localhost/myWebservice/requestSummary?paramA=...
How can I achive this goal?
I know that it must have something to do with binding - <http:operation location=...>, but I do not get it to work.
Please help!
Thanks in Advance!
StefNo one?
I can't believe it! ;)
Nevertheless, if anyone has an idea, please tell me!
Maybe you are looking for
-
Urgent: Regarding Sending Email Notifications
Hi all, We have scenario in which we have to search those users who has not accessed their accounts from last 2 years and then send them an email notification and after one month of notificatio we have to search those users who have been notified but
-
Best iPad mail app for attachments
I'll be picking up the new iPad Air in the next few days and am wondering what email app I should use for attachements. My work uses a Gmail hosted email service, and I'm a Gmail user myself, so ideally it would have multi-account support. In my work
-
Hello Everyone After upgrading to lion on my MBP, My itunes apps are not showing their picture/logo. When I click on one it says "The App could not be used because the original file could not be found. Would you like to locate it?" Now they are all s
-
Hi everyone, I am preparing for my CCNA, while I am working GNS3 or the real routers or switches some commands are not applied. I did some researches online and found it is the IOS versions that I am using. so can any one give me a brief description
-
Ring Control Vs. Enumeration Control
Hi, Can someone tell me what is the difference between a ring control and an enumeration control, other than the fact that I can assign any integer value to a ring label? Thanks, Phil