Set approver in startworkflow method in web service
Hello
I would like to set approver to web service workflows.
I can start my workflow via web service but everytime i do it it sends mail to me.
I would like to how how to change email which is sent to. (how to change approver)
best regards.
Hi,
For changing the approver id in your workflow you need to modify workflow association.
You can see in the below link:
http://chrisdomino.com/blog/post/Extending-SharePoint-Approval-Workflows-Using-Custom-Initialization-And-Association-Data
Regards,
MS
Similar Messages
-
Error in calling a method from Web services
Hai Experts,
When i try calling a method in web services from webdyn pro its not being called, i get a error SAOPFAULTCODE: 1 . wat might be the problem? The thing i am working with is tat when a employee try to create a FTR(HCM : Travel), a check has to be done in web services and then allow certain employees to proceed and rest should get a error msg but, i could find all the employees r getting the same error msg . Please resolve this issue.
Regards and thanks in advance,
Srija.Hello,
Add the line :
SET_REPORT_OBJECT_PROPERTY(RAP,REPORT_DESNAME,'test.rdf');
before
VRAP:=RUN_REPORT_OBJECT(RAP);
(Of course, 'test.rdf" is an example, replace it by the name of the reports who want to execute)
Regards -
Expose AM methods as web services
Hi All,
As searched results from the forum, most of posts talking about how to consume WS by generating java file from wsdl. My question is, can we expose an AM method as web services? If answer is yes, may I have some high level steps for following up?
If we expose AM method as an web service, does that mean we have to pack all FND/OA classes in war file then deploy it into OC4J container?
We are using an old AS and even don't have standalone OC4J server installed. Even I can install a standalone OC4J but I still don't know how to resolve above question.
Thanks & Regards,
KJI have used Glue (http://www.themindelectric.com/products/glue/glue.html) to expose some of our stuff as Web Services. I recently found this on serverside. It's pretty good.
http://www.theserverside.com/resources/article.jsp?l=Systinet-web-services-part-1
I believe that the middleware they use can be plugged into IPlanet. There is also an article in the knowledge base on the IPlanet site.
Jon -
Expose a class method as web service
hi ABAPers,
is it possibile to expose a class method as web service? I would like to write a base class with common code, while derived classes implement specific application logic.
I have both R/3 6.40 and Netweaver 7.0 kernels, so I'm interested in both.
thank you.No, it is not yet possible.
You can only create a web service for an RFC Function Module, Function Group or Business Object.
You may create a RFC FM as a wrapper to your Class methods and create a web service on the RFC FM.
Regards,
Naimesh Patel -
About context-root setting method of Web service
When you generate Web service, please teach me the context-root setting method.
With JDev9.0.5, Although it sets in webservices.xml.
With JDev10.1.3, There is no context-root element
Environment:
OC4J:Oracle Containers for J2EE 10g (10.1.3) JDev:Oracle JDeveloper 10g (10.1.3)Hi,
can you please describe, how you build this asynchronous HelloWorld service?
With Jdeveloper 10g building asynchronous java webservices is not supported.
So how did you build this asynchronous webservice?
If this HelloWorld service is a bpel project, then the invocation from another BPEL via invoke and receive should work... -
Unable to expose a method in web service
Hi,
My scenario is to expose a method in service. This method will take date as input & should return all the rows.
To Implement this, I took employeeVO of HR DB(Employees Table) & created a ViewCriteria "GetEmpbyHireDate" with Hiredate as input param.
& in AMImpl the code is
public BaseEmployeeVOImpl getEmployeesByHireDate(Date hiredate){
BaseEmployeeVOImpl baseEmployeeVO = (BaseEmployeeVOImpl) findViewObject("BaseEmployee1");
baseEmployeeVO.setApplyViewCriteriaName("GetEmpbyHireDate");
baseEmployeeVO.setNamedWhereClauseParam("pHireDate", hiredate);
baseEmployeeVO.executeQuery();
return baseEmployeeVO;
The issue is I'm not able to see this method in "Available" list of Web Service Wizard.
Help me in understanding what is missing ?
Thanks in advance.
P.S. from Jdev Help I understood that "Only methods with simple attributes as parameters and return types that are either void or view rows will appear in the list." & my method is returning rows of a EmployeeVO.Hi,
2 comments:
1) View Criteria can be directly exposed as find methods. Its on the last wizard page (just click the View Criteria tab). So no need for an Impl method
2) If you wanted to expose a method, then the documentation I think is crystal clear: "oracle.jbo.server.ViewRowImpl or any subtype" Your method returns BaseEmployeeVOImpl (see the difference ?)
Frank -
Exception while exposing Application Module Methods as Web Service
Hello Everyone,
I am working on Jdeveloper 11.1.1.3.0 version and tried to expose one method of application module as web service. To do this, i used "Service Interface" tab of Application module within Jdeveloper and Jdeveloper had generated all interfaces, stubs, code for the Session bean required for web service. I am now trying to "Test Web Service" from the implementation class generated then i am getting this error in Weblogic deployment. Any help/pointers would be highly appreciated.
I used another installation of Jdeveloper same version at my collegues desktop but getting the same error. Not sure, if this version of Jdeveloper is having issue in exposing application module as web service. I think that database related exception can be ignored as no database call is being made by the application.
[Running application SalaryControlService on Server Instance IntegratedWebLogicServer...]
[10:41:26 AM] ---- Deployment started. ----
[10:41:26 AM] Target platform is (Weblogic 10.3).
[10:41:27 AM] Retrieving existing application information
[10:41:27 AM] Running dependency analysis...
[10:41:27 AM] Deploying 2 profiles...
[10:41:27 AM] Wrote EJB Module to C:\Documents and Settings\sacggupt\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SalaryControlService\ModelEJB.jar
[10:41:28 AM] Wrote Enterprise Application Module to C:\Documents and Settings\sacggupt\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SalaryControlService
[10:41:29 AM] java.lang.NullPointerException
[10:41:29 AM] at oracle.j2ee.ws.tools.wsa.jaxws.AssemblerProcessor.getClassNamesFromEjb(AssemblerProcessor.java:180)
[10:41:29 AM] at oracle.j2ee.ws.tools.wsa.jaxws.AssemblerProcessor.processEjb(AssemblerProcessor.java:149)
[10:41:29 AM] at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsEjbAssembler.processEjb(JaxwsEjbAssembler.java:182)
[10:41:29 AM] at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsEjbAssembler.ejbAssemble(JaxwsEjbAssembler.java:152)
[10:41:29 AM] at oracle.j2ee.ws.tools.wsa.cli.Processor.jaxwsEjbAssemble(Processor.java:630)
[10:41:29 AM] at oracle.j2ee.ws.tools.wsa.cli.Processor.execute(Processor.java:327)
[10:41:29 AM] at oracle.j2ee.ws.tools.wsa.cli.Processor.execute(Processor.java:230)
[10:41:29 AM] at oracle.j2ee.ws.tools.wsa.Main.mainNoSystemExit(Main.java:84)
[10:41:29 AM] at oracle.j2ee.ws.tools.wsa.Main.main(Main.java:49)
[10:41:29 AM] WARNING: Error while processing ejb-jar.xml for ejb module at "C:\Documents and Settings\sacggupt\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\SalaryControlService\ModelEJB.jar".
[10:41:29 AM] INFO: Unable to load annotation weblogic.javaee.CallByReference for parsing. The annotation is ignored.
[10:41:29 AM] INFO: Unable to load annotation weblogic.javaee.CallByReference for parsing. The annotation is ignored.
[10:41:29 AM] INFO: GenericWSWarAnnotationListener.parseAnnotatedClass Adding Servlet Mapping with URL pattern /HrModuleService for annotated WebService class lt.andrejusb.model.server.serviceinterface.HrModuleServiceImpl
[10:41:30 AM] WSA process exited with code 0
[10:41:30 AM] Deploying Application...
<Jan 3, 2011 10:41:31 AM IST> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application SalaryControlService is not versioned.>
<ServerMessages><warningMBeanRegisterError> Failed to register the web service Config MBeans for application: SalaryControlService endpoint: SalaryControlService the error is: oracle.as.jmx.framework.util.MissingConfigurationFileException: The configuration at URI "WEB-INF\oracle-webservices.xml" cannot be loaded.
[10:41:36 AM] Application Deployed Successfully.
[10:41:36 AM] The following URL context root(s) were defined and can be used as a starting point to test your application:
[10:41:36 AM] http://10.176.162.16:7101/SalaryControlService
[10:41:36 AM] Elapsed time for deployment: 9 seconds
[10:41:36 AM] ---- Deployment finished. ----
Run startup time: 9391 ms.
[Application SalaryControlService deployed to Server Instance IntegratedWebLogicServer]
Target URL -- http://localhost:7101/SalaryControlService/HrModuleService
Edited by: LearningToFly on Jan 2, 2011 9:13 PMHello,
Is this resolved yet? The reason I am asking is that I'm getting the same error as yours. I am trying to run the StoreFront tutorial in JDeveloper 11.1.1.3 and here's what I got:
[04:21:31 PM] ---- Deployment started. ----
[04:21:31 PM] Target platform is (Weblogic 10.3).
[04:21:32 PM] Retrieving existing application information
[04:21:32 PM] Running dependency analysis...
[04:21:32 PM] Deploying 4 profiles...
[04:21:32 PM] Wrote MAR file to C:\Documents and Settings\ylin\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\StoreFrontModule\metadata1.mar
[04:21:33 PM] Wrote Web Application Module to C:\Documents and Settings\ylin\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\StoreFrontModule\StoreFrontUIWebApp.war
[04:21:38 PM] Wrote EJB Module to C:\Documents and Settings\ylin\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\StoreFrontModule\StoreFrontServiceEJB.jar
[04:21:40 PM] Wrote Enterprise Application Module to C:\Documents and Settings\ylin\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\StoreFrontModule
[04:21:41 PM] java.lang.NullPointerException
[04:21:41 PM] at oracle.j2ee.ws.tools.wsa.jaxws.AssemblerProcessor.getClassNamesFromEjb(AssemblerProcessor.java:180)
[04:21:41 PM] at oracle.j2ee.ws.tools.wsa.jaxws.AssemblerProcessor.processEjb(AssemblerProcessor.java:149)
[04:21:41 PM] at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsEjbAssembler.processEjb(JaxwsEjbAssembler.java:182)
[04:21:41 PM] at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsEjbAssembler.ejbAssemble(JaxwsEjbAssembler.java:152)
[04:21:41 PM] at oracle.j2ee.ws.tools.wsa.cli.Processor.jaxwsEjbAssemble(Processor.java:630)
[04:21:41 PM] at oracle.j2ee.ws.tools.wsa.cli.Processor.execute(Processor.java:327)
[04:21:41 PM] at oracle.j2ee.ws.tools.wsa.cli.Processor.execute(Processor.java:230)
[04:21:41 PM] at oracle.j2ee.ws.tools.wsa.Main.mainNoSystemExit(Main.java:84)
[04:21:41 PM] at oracle.j2ee.ws.tools.wsa.Main.main(Main.java:49)
[04:21:41 PM] WARNING: Error while processing ejb-jar.xml for ejb module at "C:\Documents and Settings\ylin\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\StoreFrontModule\StoreFrontServiceEJB.jar".
[04:21:41 PM] INFO: Unable to load annotation weblogic.javaee.CallByReference for parsing. The annotation is ignored.
[04:21:41 PM] INFO: Unable to load annotation javax.interceptor.Interceptors for parsing. The annotation is ignored.
[04:21:41 PM] INFO: Unable to load annotation weblogic.javaee.CallByReference for parsing. The annotation is ignored.
[04:21:41 PM] INFO: Unable to load annotation javax.interceptor.Interceptors for parsing. The annotation is ignored.
[04:21:41 PM] INFO: GenericWSWarAnnotationListener.parseAnnotatedClass Adding Servlet Mapping with URL pattern /StoreFron
Can someone help with this? Thank you in advance!
Edited by: 834077 on Mar 5, 2011 6:28 AM -
How to overload method in web services ?
hi all !
how can i overload a web services method ? , i hear about using javax.xml.ws.RequestWrapper , but when i try to use wsimport , it say : error dupplicate method.
this is the sample from forum :
package my.ws;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
@WebService
//(name="HelloWS", serviceName="HelloWSService")
public class Hello {
* Web service operation
@WebMethod
@RequestWrapper(className = "com.veera.Clac.CalculatorRequest", targetNamespace = "http://Calc.veera.com/")
@ResponseWrapper(className = "com.veera.Clac.CalculatorResponse", targetNamespace = "http://Calc.veera.com/")
public int add(@WebParam(name = "a")
int a, @WebParam(name = "b")
int b) {
// TODO implement operation
return 0;
* Web service operation
@WebMethod
@RequestWrapper(className = "com.veera.Clac.CalculatorOverloadRequest", targetNamespace = "http://CalcOverLoad.veera.com/")
@ResponseWrapper(className = "com.veera.Clac.CalculatorOverloadResponse", targetNamespace = "http://CalcOverLoad.veera.com/")
public String add(@WebParam(name = "v")
String v) {
// TODO implement operation
return "Veera";
}thanksHi, Eric,
Thank you for your quick reply.
The web service I am trying to develop is basically a generic Data Access Component to bridge between SQL server and a desktop .Net application. The application will have about 3000 users from WAN, therefore we want to have a server side component to handle connection pooling etc. Because of limitation of current servers, we are asked to develop a Java Web Service, instead of MS WS.
To make the component more reusable, I am thinking to have methods like this in the service:
RunQueryReturnRS(String Sql, WebRowSet, rs)
RunQueryReturnInt(String Sql, int NumRecdImpacted)
RunStoredProcedureReturnRS(â¦.)
RunStoredProcedureReturnInt(â¦.)
â¦â¦
You see, I would like to get whole resultset back to client, including both metadata and data in a format of generic resultset. When I paged through the Sunâs document, finding WebRowSet is claimed to be seariable, and ready for Web Service. I thought if I can use WebRowSet that will save me time to write new classes to hold resultset info and pass back to client.
Could you please tell me if it is a feasible approach?
Thank you.
-Qing -
One Way Method for Web Service Axis
Hi all,
I want for my web service a method that use a one way operation. How must be this method? Method must be void?
Can you help me?
Thanks Pasquy.Try to explore abstract schema type.
-
Overloaded ejb methods as web service
I implemented an ejb as a web service. The ejb has 4 overloaded methods. When I looked at the generated wsdl, only one signature was exposed as a web service. Is there a way to make all 4 overloaded methods available to the web service ?
Hi Sandy,
The WLS 6.1 docs clear states that method overloading is not supported with WebLogic
Web Services:
http://e-docs.bea.com/wls/docs61/webServices/develop.html#1034539
However, you might be able to simulate something similar by passing a org.w3c.dom.DocumentFragment
to the method. For example,
public org.w3c.dom.DocumentFragment overloadedMethod(org.w3c.dom.DocumentFragment
variableArgs)
This allows you to use the flexibility of XML to provide various input and output
parameters for the method. In the method's implementation, you determine which
arguments have been passed by parsing the variableArgs node. For quasi type safety,
you could use the xsi:type attribute to associate data types with fragment elements.
Note that you will need to use literal XML encoding to do this.
HTH,
Mike Wooten
Sandy <[email protected]> wrote:
I implemented an ejb as a web service. The ejb has 4 overloaded methods.
When I looked at the generated wsdl, only one signature was exposed
as a web service. Is there a way to make all 4 overloaded methods available
to the web service ? -
Protected methods in web services
hello,
I created the descriptor file for a web service that had a protected method in
it and noticed the protected method showed up in the descriptor file! Should
the "source2wsdd" task only output PUBLIC methods as service actions? Is there
any way to specify methods to be 'ignored' when generating the web services descriptor
file?
here was the generated descriptor XML:
<web-service name="BindingService"
protocol="https"
style="document"
targetNamespace="http://www.foo.com/ws/BindingService/"
portName="BindingServicePort"
uri="/BindingService"
portTypeName="BindingServicePort">
<types>
</types>
<wsdd:type-mapping xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdd="http://www.bea.com/servers/wls70">
<wsdd:type-mapping-entry deserializer="weblogic.xml.schema.binding.internal.builtin.DocumentCodec"
type="xsd:anyType"
class-name="org.w3c.dom.Document"
serializer="weblogic.xml.schema.binding.internal.builtin.DocumentCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
<components>
<java-class name="BindingService"
class-name="com.arrow.ws.vendor.BindingService">
</java-class>
</components>
<operations>
<operation name="getConfigName"
component="BindingService"
method="getConfigName()">
<params>
<return-param xmlns:typeNS="http://www.w3.org/2001/XMLSchema"
location="body"
type="typeNS:string"
name="result"
class-name="java.lang.String">
</return-param>
</params>
</operation>
</operations>
</web-service>Checkout this example:
http://www.manojc.com/?sample3
public class HelloWorldService{
* @wlws:exclude
public void dontExpose(){
Regards,
-manoj
http://manojc.com
"Jacob Anderson" <[email protected]> wrote in message
news:4036581e$[email protected]..
>
hello,
I created the descriptor file for a web service that had a protectedmethod in
it and noticed the protected method showed up in the descriptor file!Should
the "source2wsdd" task only output PUBLIC methods as service actions? Isthere
any way to specify methods to be 'ignored' when generating the webservices descriptor
file?
here was the generated descriptor XML:
<web-service name="BindingService"
protocol="https"
style="document"
targetNamespace="http://www.foo.com/ws/BindingService/"
portName="BindingServicePort"
uri="/BindingService"
portTypeName="BindingServicePort">
<types>
</types>
<wsdd:type-mappingxmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdd="http://www.bea.com/servers/wls70">
<wsdd:type-mapping-entrydeserializer="weblogic.xml.schema.binding.internal.builtin.DocumentCodec"
type="xsd:anyType"
class-name="org.w3c.dom.Document"
serializer="weblogic.xml.schema.binding.internal.builtin.DocumentCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
<components>
<java-class name="BindingService"
class-name="com.arrow.ws.vendor.BindingService">
</java-class>
</components>
<operations>
<operation name="getConfigName"
component="BindingService"
method="getConfigName()">
<params>
<return-param xmlns:typeNS="http://www.w3.org/2001/XMLSchema"
location="body"
type="typeNS:string"
name="result"
class-name="java.lang.String">
</return-param>
</params>
</operation>
</operations>
</web-service> -
How to call ABAP function module/ class method through web service?
Hi Colleagues,
I need to write an iphone version of current ABAP program. I want to call ABAP method and function module through my iphone so that I can re-use the ABAP APIs.So I choose web service. Can you give me any details information about how to do that?
Thank you very muchHi,
you need to create webservice out of FM. goto SE80 and follow the webservice creation wizard. Finally use webservice url for calling FM (remote enabled) from your iPhone.
Regards,
Gourav -
Exposing Java method as Web service
Hello,
I would like to know how can I make a Java Method expose as a webservice using BPEL.
I have created a java class To do some processing. I want to make this as a service. Is there any sample code to do this? Please provide any links..If you used the Web Service Wizard the easiest thing to do is:
1. Delete the WS class - when prompted also delete all artifacts - you should now see your original class files. *
2. Add extra methods.
3. Regenerate web service using same parameters as previously (make sure you use the same namespaces).
(4. Apply any customisations you made)
*Occasionally this will not work and will not remove the references to the WS artifacts from the project file, in this case you will need to manually remove them from the project xml file.
You can also edit the project to make the classes visible (can't remember the exact steps for this, it's been a while), change the classes and regenerate services, however this will overwrite any customisations you have made, so is little different to removing the artifacts and regenerating.
Finally you can make the classes visible as above, updatethem and then manually edit the other web service artefacts (<name>-java-wsdl-mapping.xml,webservices.xml, oracle-webservices .xml, Interface, etc). This is a lot more tedious than using autogeneration. -
How to set the binding type in abap web service
before generating wsdl , anybody know how to change the binding type of wsdl for web service
do u know any sap netweaver transaction coads for changing the binding .
lpconfig tansaction call parameter (logical port) for client proxi is showing like
binding type = http://schemas.xmlsoap.org/soap/http
but it is predefined in some profile can u tell me how to change this
an in my wsdl i am getting
<wsdl:port name="z_add_add_webSoapBinding" binding="tns:z_add_add_webSoapBinding">
this i cant consume from java , in SAP i can consume this web service ,
i want to make my wsdl like as shown bellow
- <wsdl:port name="periodictableSoap" binding="tns:periodictableSoap">
<soap:address location="http://www.webservicex.net/periodictable.asmx" />
</wsdl:port>
- <wsdl:port name="periodictableHttpGet" binding="tns:periodictableHttpGet">
<http:address location="http://www.webservicex.net/periodictable.asmx" />
</wsdl:port>
- <wsdl:port name="periodictableHttpPost" binding="tns:periodictableHttpPost">
<http:address location="http://www.webservicex.net/periodictable.asmx" />
here you can sea httpget and httppost in my wsdl it is not there -
Setting up eprint - cannot connect to Web Services
HP 7510 - new install - eprint cannot connect to Web Services
Hi,
You may have to wait and retry. The site may go down for maintenance. OR you may wat to try this:
http://h30434.www3.hp.com/t5/ePrint-Print-Apps-Mobile/Envy-110-Printer-Cannot-Enable-Web-Services/td...
Hope this helps.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
Maybe you are looking for
-
i want to play my ipad on through my tv and receiver to get surround sound (not using the tv speakers) I connect the htmi cable to my tv and ipad do i need more cable to get my surround sound to play the audio? i thought hdmi did it all.
-
How to find combinations of a string
Hi Dear, How can we find the combination of a given string whatever input given by user. If the String is A1C the possible outcomes are: A1C AC1 1CA 1AC CA1 C1A Best Regards, Aditya
-
How do I get free trial to work?
How do I get free trial to work. Downloaded CC desktop . Now computer is just thinking.
-
Problem of Master-Detail displaying
I have a room VO ,in every room I have several Patients.I display the rooms in a table(room.uix) .And I want to display the patients for the selected room in another table(in patient.uix) and also the selected room. I tried it through using a event "
-
Ran migration assistant. Do not like having to sign in to either pc or Mac at start up What can I do?