Consuimg peoplesoft webservice in  JSFapplication

Hi,
I am using Jdeveloper 11g to consume a peoplesoft webservice which does the basic datbase operations.
I have been successful in creating a proxy using the wsdl file and using JAX-WS approach to achieve the same.
I can connect to the webservice using the proxy client.
But when i package the proxy( create a jar) and import in my web application (JSF application), i am running into following error.
<ActionListenerImpl><processAction> com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
javax.faces.el.EvaluationException: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
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:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:214)
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:222)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:531)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:127)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
at $Proxy135.getCompIntfcKCMWEBCASECI(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.wsee.jaxws.spi.ClientInstance$ClientInstanceInvocationHandler.invoke(ClientInstance.java:363)
at $Proxy136.getCompIntfcKCMWEBCASECI(Unknown Source)
at project1.proxy.KCM_WEB_CASE_CISoapClient.getKCMMethod_final(KCM_WEB_CASE_CISoapClient.java:618)
at login.view.Handler.CRMSearchHandler.getSearchResults(CRMSearchHandler.java:18)
at login.view.backing.Login.search(Login.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
I am not sure what else i need to import or rather how to package the proxy classes to get it working.
Any help will be highly appreciated.
I even tried creating a webservice proxy in the JSF project instead of importing the jar, yet i am getting the same error, but the irony is that when i run just the proxy class(standalone with main method) i can get access to the webservice.
Thanks
Ash

HI ,
1) You can use the Service Operation security link ( on service operation General tab) to give access to particular group by a permission list.
2) Using the routings for the service opeartion, exposed as Web service select the specified nodes only. At place of Any to local specify the required integration node.
Thanks

Similar Messages

  • Insert data using peoplesoft webservice gives component API error

    Hi,
    I am using jdeveloper 11g to consume a peoplesoft webservice using the wsdl file and JAX-Ws approach to build the proxy.
    I have been successfull in getting to work the "get", "find" methods for the webservice but while trying to access the create/Update(inserting data) method, it gives me the following exception.
    In CREATE method
    Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Component Interface API.
         at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:197)
         at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:130)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:125)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
         at $Proxy32.createCompIntfcKCMWEBCASECI(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.wsee.jaxws.spi.ClientInstance$ClientInstanceInvocationHandler.invoke(ClientInstance.java:363)
         at $Proxy33.createCompIntfcKCMWEBCASECI(Unknown Source)
         at project1.proxy.KCM_WEB_CASE_CISoapClient.createKCMMethod(KCM_WEB_CASE_CISoapClient.java:318)
         at project1.proxy.KCM_WEB_CASE_CISoapClient.main(KCM_WEB_CASE_CISoapClient.java:116)
    Process exited with exit code 1.
    From the exception it is not clear what is missing or where am i going wrong. I have provided all the mandatory values required by the method.
    The create method generated needs almost 40 parameters, hence i am intializing all of them and sending it.
    Few parameters are INOUT or out mode, depending on that i even created the required holder etc.
    I dont have any access to peoplesoft logs, is there a way to debug this further.
    Basically i am stuck here as i am not able to decode this exception.
    Can anyone tell me where is it failing, is it a some formation error or is it creating a query at db and getting a sql error??
    as mentioned earlier, its very difficult to get access to db resources hence its becmong very difficult to debug the error.
    Any help will be appreciated.
    Thank you in advance
    Ashvini
    Edited by: [email protected] on Jun 7, 2010 7:49 AM
    Edited by: [email protected] on Jun 8, 2010 6:37 AM

    Hi, I have exact the same problem. Have you got any answer for this problem yet? Please forward it to me if you have one. Many thanks.

  • Consuming peoplesoft webservices using JSF application gives error

    Hi,
    I am using Jdeveloper 11g to consume a peoplesoft webservice which does the basic datbase operations.
    I have been successful in creating a proxy using the wsdl file and using JAX-WS approach to achieve the same.
    I can connect to the webservice using the proxy client.
    But when i package the proxy( create a jar) and import in my web application (JSF application), i am running into following error.
    <ActionListenerImpl><processAction> com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    javax.faces.el.EvaluationException: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at javax.faces.component.UICommand.broadcast(UICommand.java:387)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         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:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
         at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:214)
         at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:222)
         at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:531)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:127)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
         at $Proxy135.getCompIntfcKCMWEBCASECI(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.wsee.jaxws.spi.ClientInstance$ClientInstanceInvocationHandler.invoke(ClientInstance.java:363)
         at $Proxy136.getCompIntfcKCMWEBCASECI(Unknown Source)
         at project1.proxy.KCM_WEB_CASE_CISoapClient.getKCMMethod_final(KCM_WEB_CASE_CISoapClient.java:618)
         at login.view.Handler.CRMSearchHandler.getSearchResults(CRMSearchHandler.java:18)
         at login.view.backing.Login.search(Login.java:54)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
    I am not sure what else i need to import or rather how to package the proxy classes to get it working.
    Any help will be highly appreciated.
    I even tried creating a webservice proxy in the JSF project instead of importing the jar, yet i am getting the same error, but the irony is that when i run just the proxy class(standalone with main method) i can get access to the webservice.
    Thanks
    Ash
    Edited by: [email protected] on Jun 8, 2010 2:38 PM

    Well,
    There is a issue with analyzer capturing SOAP traffic when using with secure proxies, so that is why you are not seeing any data there.
    And I think if you will try your jax-rpc code again, it might work as there was nothing incorrect in your code, so might be that the whole config was corrupt which was throwing out incorrect error(s).
    About a web service with credentials, you can quickly create one.
    Have a java class like the following:
    import javax.jws.WebService;
    import weblogic.jws.Policy;
    @WebService
    @Policy(uri = "policy:Wssp1.2-2007-Https-UsernameToken-Plain.xml")
    public class Class1 {
    public Class1() {
    super();
    public String sayHello() {
    return "Hi";
    The procy code for this will be something like:
    private static Class1Service class1Service;
    public static void main(String[] args) {
    try {
    class1Service = new Class1Service();
    Class1 class1 = class1Service.getClass1Port();
    Map<String, Object> requestContext = ((BindingProvider) class1).getRequestContext();
    setPortCredentialProviderList(requestContext);
    // Add your code to call the desired methods.
    System.out.println(class1.sayHello());
    } catch (Exception ex) {
    ex.printStackTrace();
    public static void setPortCredentialProviderList(Map<String, Object> requestContext) throws Exception {
    // TODO - Provide the required values
    String username = "weblogic";
    String password = "weblogic1";
    List<CredentialProvider> credList = new ArrayList<CredentialProvider>();
    // Add the necessary credential providers to the list
    credList.add(getUNTCredentialProvider(username, password));
    //credList.add(getBSTCredentialProvider(clientKeyStore, clientKeyStorePassword, clientKeyAlias, clientKeyPassword, serverKeyStore, serverKeyStorePassword, serverKeyAlias, requestContext));
    //credList.add(getSAMLTrustCredentialProvider());
    requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credList);
    Thanks,
    Vishal

  • Peoplesoft Webservice

    Hello,
    has someone worked on creating aweb service w/o using CI based Web service ?
    I tried to create one usng contained based message and could not successfuly get a resonce when invoking from SENDMASTER.

    Graham and colleagues,
    I eventually got it to work. ( ANd sorry for the delayed response. :( )
    I am kind of stuck trying to implement what we have been doing so using sqr.
    I am calling multiple CIs for the same message.
    If one of the CI's fail, I want to rollback everything. But I also want to load into an error log table.
    Each message can have multiple transactions ( multiple CIs needs to be fired for each transaction. ) and I need to commit to the database all the successful transactions and rollback the unsuccessful ones.
    Can this be achivied ?
    We can do it in SQR where if one of the inserts fails, we rollback inserts/update into all the other tables. ( we have control over commits as well are rollbacks. ) Off course, we process flat files.
    It appears that in App Messaging, to rollback, you can only use an exit(1) But that would rollback everything. ( I could send a separate message to log into the error log table. But then we would end up generating too many messages. ) This still does not resolve the issue of otherwise successful transactions getting rolled back.
    Another issue with exit(1) is that it errors the message w.o giving an opportuity to send a message back to the source system telling it what caused the error.
    Have you encountered something similar ? If so, how did you resolve this issue ?
    I am quite sure there is a better way to do it. Its just that I am missing something.
    Thanks.

  • User name and password missing  - consuming webservice

    while tyring to consume a peoplesoft webservice i am getting an error like this , anybody know how to solve this prob
    <?xml version="1.0" encoding="utf-8" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    - <asx:values>
      <SYSTEMFAULT href="#o140" />
      </asx:values>
    - <asx:heap xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:abap="http://www.sap.com/abapxml/types/built-in" xmlns:cls="http://www.sap.com/abapxml/classes/global" xmlns:dic="http://www.sap.com/abapxml/types/dictionary">
    - <cls:CX_AI_SYSTEM_FAULT id="o140">
    - <CX_ROOT>
      <TEXTID>F63AFF63DBE4BB4786A7F52CC4167145</TEXTID>
      <PREVIOUS />
      <KERNEL_ERRID />
    - <INTERNAL_SOURCE_POS>
      <PROGID>212</PROGID>
      <CONTID>1050</CONTID>
      </INTERNAL_SOURCE_POS>
      </CX_ROOT>
      <CX_STATIC_CHECK />
    - <CX_AI_SYSTEM_FAULT>
      <CODECONTEXT>http://www.sap.com/xml_errorcodes</CODECONTEXT>
    <CODE>SoapFaultCode:4</CODE>
      <ERRORTEXT>Username missing from request.</ERRORTEXT>
      <LANGUAGE />
      </CX_AI_SYSTEM_FAULT>
      </cls:CX_AI_SYSTEM_FAULT>
      </asx:heap>
      </asx:abap>

    Hi,
         Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4212570&messageID=3210427
    Regards

  • Error in running a simple JSF app developed in Jdeveloper over weblogic

    I have a developed a simple JSF application using Jdeveloper 11g.
    To this application i have added a webservice proxy which generates the proxy client which communicates with the peoplesoft webservice.
    when i run the standalone proxy class, it is able to connect to the webservice and get the required data.
    But as i deploy the whole JSF application (where the managed bean calls a method in the client) in Integrated weblogic server, i get an XMLStreamReaderException.
    To debug this issue i deployed the war file in apache-tomcat6.0.26 with all the reqquired libraries in the Lib folder, it actually worked , my jsf application was able to get the data from the webservice.
    This makes me think that there is some problem in the way Jdeveloper is packaging the application.I have added all the lib & jar through "libraries &classpath" setting on project properties.But i am sure there is some problem in this process.
    I just need some help in understanding how to package an application,how to make sure all lib & jar are included in the war file??
    Any help is appreciated.
    The error i get in the weblogic is
    com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    avax.faces.el.EvaluationException: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    at javax.faces.component.UICommand.broadcast(UICommand.java:387)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227
    thanks in advance
    Ash

    HI
    First of all, how do you concluded that you're dealing with packaging problem?? It seems problem is in response from web service. The toolkit you have is not able to parse the soap response. Tomcat solves problem probably because of the different jars he has for web service client.
    In either way, i have personally experienced problems with JD packaging (11g). The WAR created by JD was working well in embedded WLS shipped with JD, but when deployed to production WLS 10.3.1, i got a "IO exception; premature end of file". The only solution was to create a WAR by ant.
    Here is ANT sample script for building java classes, packaging into war, deploying to WLS (for this last one, you need to reference external jar):
    <target name="build">
    <!-- compile -->
    <javac debug="true" debuglevel="${debuglevel}" source="${source_version}" target="${target_version}" destdir="${output.dir}">
    <src path="${src.location}"/>
    </javac>
    </target>
         <target name="war" depends="build">
    <delete file="${target_war_file}"/>
    <war destfile="${target_war_file}" webxml="src/WEB-INF/web.xml" manifest="/src/META-INF/MANIFEST.MF" update="true">
    <classes dir="${output.dir}"/>
    <lib dir="${build_libs.location}">
    <include name="**/*.jar"/>
    </lib>
    <!-- include important jsf files files -->
    <zipfileset dir="${path.to.conf.folder}" prefix="WEB-INF">
    <include name="adfc-config.xml"/>
    <include name="trinidad-config.xml"/>
    <include name="web.xml"/>
    <include name="weblogic.xml"/>
    </zipfileset>
    </war>
    </target>
         <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    <classpath>
    <pathelement location="c:/oracle/wlserver_10.3/server/lib/weblogic.jar"/>
    </classpath>
    </taskdef>
    <target name="deploy">
    <wldeploy action="deploy" verbose="true" upload="true" remote="true" debug="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}"
    targets="${wls.targets}" securitymodel="CustomRoles" source="${target_war_file}" nostage="false"/>
    </target>
    <target name="undeploy">
    <wldeploy action="undeploy" verbose="true" name="${wls.app.name}" user="${wls.user}" password="${wls.password}" adminurl="${wls.admin.url}" targets="${wls.targets}" failonerror="false"/>
    </target>
    <!--     properties for deploy
         wls.targets=DefaultServer
         wls.user=weblogic
         wls.password=weblogic1
         wls.app.name=myapp
         wls.admin.url=t3://127.0.0.1:7101
         -->
    Regards

  • Property or collection #comment was not found in the component interface

    Hi All,
    I am a Java developer trying to connect my java application to a peoplesoft webservice.
    I have been able to connect to the PS webservice and access "GET","FIND" methods successfully.
    But when i am trying to connect to the CREATE(insert) method, i get the following message text.
    <faultcode>SOAP-ENV:Client</faultcode>
    <faultstring>Component Interface API.</faultstring>
    <detail>
    <messages>
    <type>Error</type>
    <messagesetnumber>91</messagesetnumber>
    <messagenumber>74</messagenumber>
    <messagetext>Property or collection #comment was not found in the component interface at the given level.</messagetext>
    </messages>
    </detail>
    I dont have any access to peoplesoft or db logs, i started using SOAP UI to get the detail messages.
    Can anyone tell me what this message could be??
    Basically its an insert method which takes around 40 parameters out of which 2 are mandatory.
    The input that i send from my soap ui looks as follows
    +*<kcm:CASE_ID></kcm:CASE_ID>*+       
    <kcm:DISP_TMPL_ID>CRM_GOV</kcm:DISP_TMPL_ID>
    <!--Optional:-->
    <kcm:QUICK_CD>?</kcm:QUICK_CD>
    <!--Optional:-->
    <kcm:PROVIDER_GRP_NAME>City Manager Action</kcm:PROVIDER_GRP_NAME>
    <kcm:BUSINESS_UNIT>KCM01</kcm:BUSINESS_UNIT>
    <!--Optional:-->
    <kcm:PRODUCT_ID>?</kcm:PRODUCT_ID>
    When i dont send any parameter in case_id i get the above error and when i send +*<kcm:CASE_ID>?</kcm:CASE_ID>*+       
    i get a sql error
    <messages>
    <type>Error</type>
    <messagesetnumber>200</messagesetnumber>
    <messagenumber>0</messagenumber>
    <messagetext>SQL error. Stmt #: 650 Error Position: 123 Return: 1722 - ORA-01722: invalid number</messagetext>
    <explaintext/>
    </messages>
    <messages>
    <type>Error</type>
    <messagesetnumber>200</messagesetnumber>
    <messagenumber>0</messagenumber>
    <messagetext>SELECT /*+ FIRST_ROWS */ CASE_ID, DISP_TMPL_ID, BUSINESS_UNIT, RC_STATUS, RC_SUMMARY FROM PS_RC_ADD_CASE_VW WHERE CASE_ID=:1 AND DISP_TMPL_ID=:2 ORDER BY CASE_ID, DISP_TMPL_ID</messagetext>
    <explaintext/>
    </messages>
    <messages>
    <type>Error</type>
    <messagesetnumber>91</messagesetnumber>
    <messagenumber>48</messagenumber>
    <messagetext>Error accessing search record. {KCM_WEB_CASE_CI} (91,48)</messagetext>
    <explaintext>An error occurred while accessing the search record.</explaintext>
    </messages>
    <messages>
    <type>Error</type>
    <messagesetnumber>91</messagesetnumber>
    <messagenumber>61</messagenumber>
    <messagetext>Failed to create the Component Interface</messagetext>
    </messages>
    I am not understanding how do i debug this further as its very difficult for me to get any peoplesoft logs or db logs.
    Any help will be appreciated.
    Thanks
    Ash
    Edited by: ash81 on Jun 14, 2010 1:24 PM

    This will be very hard to troubleshoot without access to PeopleSoft.
    Ideally, the best way to test it would be replicate the steps you are performing in your code through the component interface/web service, and then on the actual PeopleSoft component to see if you get the same error.
    The second case where you haven't put in the parameters, make sure you clear out the ? marks and leave the value empty if you don't need to specify it.
    E.g.
    Instead of <kcm:QUICK_CD>?</kcm:QUICK_CD>
    Use: <kcm:QUICK_CD></kcm:QUICK_CD>
    I generally work backwards from soapUI -- look at the soapUI error, then test through the component interface tester in PeopleSoft application designer, then if required test in PeopleSoft.

  • Consume a third party REST Based Webservice from PeopleSoft

    We are in tools 8.49.33
    Using 'Consume Web Service' component we can only consume a WSDL based webservice I guess. But we have a requirement to consume to a third party webservice, for which we just have to invoke a URL with query string via HTTP GET and receive an XML response. Has anyone done this before?

    Three things to check:
    #1: Check your errorLog.html file in the PSIGW web app of your PeopleSoft server
    #2: Does your app server have to go through a proxy to connect to the internet? If so, did you configure integrationGateway.properties to use a proxy server? You can test this by trying to use ConnectorRequestURL for a plain old HTTP web site. If you get the same error, then it is likely a proxy issue.
    #3: If #2 passed, then it might have to do with certificates and you will need to review PeopleBooks for importing certificates for integration broker. I haven't had to do this before, but am pointing it out in case.

  • Publish PeopleSoft Application Package as WebService

    hello,
    Did you guys try to expose application package as a webservice in Peoplesoft?
    If at all can we expose anything other than CI as a webservice in peoplesoft?
    Please help.

    I guess only Integration broker objects and CI can be exposed. Hope my question and answer helps someone:)

  • Calling a ESB Webservice from Peoplesoft

    I am making the Consume WebService Wizard in PeopleSoft to consume a webservice made in ESB, but when I put in the WSDL URL Option the "Concrete WSDL URL" of the service in ESB there is an error:
    "Failed to parse WSDL document. Port Type not found in WSDL"
    I test it this WSDL calling from a BPEL process like a Partner Link and works ok.
    Did someone resolve this error in the past?
    Thank you.

    Thanks to Chintan!
    http://chintanblog.blogspot.com/2007/12/insertextract-soap-headers-in-bpel-it.html

  • Is there any Intergration (Webservice or any ) for PeopleSoft

    Hi,
    I am looking to connect to peoplesoft from a thirdparty application. is there any possible ways to connect and get details from peoplesoft.
    Thanks,
    Isuru.

    From PeopleTools 8.48 and higher PeopleSoft fully supports SOA (SOAP) and with the later versions also supports REST through the Integration Broker.
    There used to be an online repository with all available web services, but has moved to an Excel sheet (which I never was able to get working properly)
    Introduction to the PeopleSoft Interactive Services Repository (ISR) (Doc ID 735571.1)
    Here is a tutorial on how to create, deploy and call webservices in PeopleSoft.
    Integration Broker basics for the PeopleSoft developer

  • Error when trying to view page from Peoplesoft CI using JDeveloper

    I am new to JDeveloper and have created a web service using Peoplesoft. The wsdl was published to the web server and JDeveloper recognized it and allowed me to create a page from it. When I try to run it I get the following. What am I doing wrong?
    *** Using port 7101 ***
    "C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\bin\startWebLogic.cmd"
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\oracle\MIDDLE~1\patch_wls1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\oracle\MIDDLE~1\utils\config\10.3.1.0\config-launch.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.1.0.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~1\modules\ORGAPA~1.0/lib/ant-all.jar;C:\oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\oracle-portlet-api.jar;C:\oracle\MIDDLE~1\JDEVEL~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
    PATH=C:\oracle\MIDDLE~1\patch_wls1031\profiles\default\native;C:\oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~1\modules\ORGAPA~1.0\bin;C:\oracle\MIDDLE~1\JDK160~1\jre\bin;C:\oracle\MIDDLE~1\JDK160~1\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\j2sdk1.4.2_04\jre\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System;;C:\bea\Tuxedo8.1\bin;C:\Program Files\Common Files\OpSession\Shared;C:\Program Files\Common Files\OpSession\Viewer Shared;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\QuickTime\QTSystem\;C:\SSH Secure Shell;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)
    Starting WLS with line:
    C:\oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Xverify:none -da -Dplatform.home=C:\oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Ddomain.home=C:\DOCUME~1\cohnr\APPLIC~1\JDEVEL~1\SYSTEM~1.07\DEFAUL~1 -Doracle.home=C:\oracle\MIDDLE~1\JDEVEL~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\oracle\MIDDLE~1\JDEVEL~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.security.jps.config=C:\DOCUME~1\cohnr\APPLIC~1\JDEVEL~1\SYSTEM~1.07\DEFAUL~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.alternateTypesDirectory=C:\oracle\MIDDLE~1\JDEVEL~1\modules\oracle.ossoiap_11.1.1,C:\oracle\MIDDLE~1\JDEVEL~1\modules\oracle.oamprovider_11.1.1 -Dsso.filter.enable=true -DUSE_JAAS=false -Djps.policystore.hybrid.mode=false -Djps.combiner.optimize.lazyeval=true -Djps.combiner.optimize=true -Djps.auth=ACC -noverify -Doracle.core.ojdl.logging.usercontextprovider=oracle.core.ojdl.logging.impl.UserContextImpl -XX:+UseParallelGC -XX:+DisableExplicitGC -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\oracle\MIDDLE~1\patch_wls1031\profiles\default\sysext_manifest_classpath;C:\oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server
    <Nov 21, 2009 6:52:40 PM GMT-07:00> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\lib\mbeantypes\csp-id-asserter.jar;C:\oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;C:\oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;C:\oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
    <Nov 21, 2009 6:52:42 PM GMT-07:00> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 11.0-b16 from Sun Microsystems Inc.>
    <Nov 21, 2009 6:52:50 PM GMT-07:00> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.1.0 Wed Jun 10 22:24:41 MDT 2009 1227385 >
    <Nov 21, 2009 6:53:01 PM GMT-07:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 21, 2009 6:53:01 PM GMT-07:00> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Nov 21, 2009 6:53:02 PM GMT-07:00> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Nov 21, 2009 6:53:02 PM GMT-07:00> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00003. Log messages will continue to be logged in C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <Nov 21, 2009 6:53:02 PM GMT-07:00> <Notice> <Log Management> <BEA-170019> <The server log file C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <Nov 21, 2009 6:53:18 PM GMT-07:00> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Nov 21, 2009 6:53:32 PM GMT-07:00> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Nov 21, 2009 6:53:32 PM GMT-07:00> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\access.log00002. Log messages will continue to be logged in C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\access.log.>
    <Nov 21, 2009 6:53:42 PM GMT-07:00> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
    <Nov 21, 2009 6:53:42 PM GMT-07:00> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
    <Nov 21, 2009 6:53:47 PM GMT-07:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Nov 21, 2009 6:53:47 PM GMT-07:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    Nov 21, 2009 6:54:00 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: Application ID : wsm-pm
    Nov 21, 2009 6:54:01 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: "Metadata Services: Metadata archive (MAR) not found."
    <Nov 21, 2009 6:54:35 PM GMT-07:00> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Nov 21, 2009 6:54:35 PM GMT-07:00> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00003. Log messages will continue to be logged in C:\Documents and Settings\cohnr\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <Nov 21, 2009 6:54:35 PM GMT-07:00> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    Nov 21, 2009 6:54:36 PM oracle.wsm.audit.Auditor <init>
    INFO: Created J2EE application auditor for componentType=oracle.security.jps.internal.audit.AuditServiceImpl$Auditor@154d3ac
    Nov 21, 2009 6:54:36 PM oracle.adf.share.config.ADFConfigFactory getInstance
    INFO: ADF Config instance implementation in use is : oracle.adf.share.config.MDSConfigFactory
    Nov 21, 2009 6:54:42 PM oracle.adf.share.config.ADFMDSConfig parseADFConfiguration
    INFO: Configuration file:/META-INF/adf-config.xmlcannot not be read by MDS. Reading directly from the classpath
    <Nov 21, 2009 6:54:43 PM GMT-07:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Nov 21, 2009 6:54:43 PM GMT-07:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Nov 21, 2009 6:54:44 PM GMT-07:00> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 140.198.4.154:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 21, 2009 6:54:44 PM GMT-07:00> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 21, 2009 6:54:44 PM GMT-07:00> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <Nov 21, 2009 6:54:45 PM GMT-07:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Nov 21, 2009 6:54:45 PM GMT-07:00> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    DefaultServer startup time: 145457 ms.
    DefaultServer started.
    [Running application PSFTtoADF on Server Instance DefaultServer...]
    Nov 21, 2009 6:55:15 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: Application ID : PSFTtoADF
    Nov 21, 2009 6:55:15 PM oracle.mds.internal.lcm.logging.MDSLCMLogger info
    INFO: "Metadata Services: Metadata archive (MAR) not found."
    <Nov 21, 2009 6:55:25 PM GMT-07:00> <Warning> <HTTP> <BEA-101299> <The servlet-mapping for servlet-name "jsp" will override the default mapping for *.jsp. This can lead to a show code vulnerability.>
    Nov 21, 2009 6:55:37 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    Nov 21, 2009 6:55:37 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    Run startup time: 52658 ms.
    [Application PSFTtoADF deployed to Server Instance DefaultServer]
    Target URL -- http://127.0.0.1:7101/PSFTtoADF-ViewController-context-root/faces/Employee.jspx
    Nov 21, 2009 6:57:12 PM oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationCpx
    INFO: file:/C:/Documents and Settings/cohnr/Application Data/JDeveloper/system11.1.1.1.33.54.07/o.j2ee/drs/PSFTtoADF/PSFTtoADF-ViewController-webapp/WEB-INF/classes/view/DataBindings.cpx
    Nov 21, 2009 6:57:13 PM oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl setLifecycleContextBuilder
    INFO: ADFc: Initializing ADF Page Lifecycle for the JSF environment, LifecycleContextBuilder is 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    Nov 21, 2009 6:57:17 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    Nov 21, 2009 6:57:17 PM oracle.adf.share.jndi.MDSBackingStore documentExists
    INFO: MDS-00013: no metadata found for metadata object "/META-INF/connections.xml"
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition loadFromMetadata
    WARNING: 'loadFromMetadata' did not complete successfully due to a failure to load the connection metadata for the target webservice.
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition loadFromMetadata
    WARNING: The following error message was recieved null
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition loadFromMetadata
    WARNING: Either the 'META-INF/connections.xml' is not accessible or does not exist
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition loadFromMetadata
    WARNING: Verify if the connections.xml has valid metadata defined for connection 'PersonalData'
    Nov 21, 2009 6:57:17 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition createDataControl
    SEVERE: Failed to create a Connection to the target Webservice
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition createDataControl
    SEVERE: Ensure that the META-INF/connections.xml exists
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition createDataControl
    SEVERE: Verify if the connections.xml has valid metadata defined for the webservice connection PersonalData
    Nov 21, 2009 6:57:17 PM oracle.adf.model.adapter.DataControlFactoryImpl createSession
    SEVERE: Exception:
    oracle.adf.model.adapter.AdapterException: DCA-40012: The Web Service call failed. A connection to the target Web Service could not be created.
         at oracle.adfinternal.model.adapter.webservice.WSDefinition.createDataControl(WSDefinition.java:565)
         at oracle.adf.model.adapter.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:173)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:166)
         at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:819)
         at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1070)
         at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:973)
         at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:933)
         at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:939)
         at oracle.adf.model.BindingContext.get(BindingContext.java:896)
         at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1519)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.initDataControl(JUMethodIteratorDef.java:589)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2348)
         at oracle.adf.model.binding.DCIteratorBinding.getSortCriteria(DCIteratorBinding.java:3658)
         at oracle.adf.model.binding.DCInvokeMethod.setAssociatedIteratorBinding(DCInvokeMethod.java:851)
         at oracle.adf.model.binding.DCIteratorBinding.cacheRefOnOperation(DCIteratorBinding.java:5263)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.getActionBinding(JUMethodIteratorDef.java:283)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef.isRefreshable(JUMethodIteratorDef.java:59)
         at oracle.adf.model.binding.DCExecutableBindingDef.isRefreshable(DCExecutableBindingDef.java:274)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2888)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2759)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
         at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:80)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:21)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:352)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         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:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Nov 21, 2009 6:57:17 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition loadFromMetadata
    WARNING: 'loadFromMetadata' did not complete successfully due to a failure to load the connection metadata for the target webservice.
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition loadFromMetadata
    WARNING: The following error message was recieved null
    Nov 21, 2009 6:57:17 PM oracle.adfinternal.model.adapter.webservice.WSDefinition loadFromMetadata
    WARNING: Either the 'META-INF/connections.xml' is not accessible or does not exist
    Nov 21, 2009 6:57:18 PM oracle.adfinternal.model.adapter.webservice.WSDefinition loadFromMetadata
    WARNING: Verify if the connections.xml has valid metadata defined for connection 'PersonalData'
    Nov 21, 2009 6:57:18 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    Nov 21, 2009 6:57:18 PM oracle.adfinternal.model.adapter.webservice.WSDefinition createDataControl
    SEVERE: Failed to create a Connection to the target Webservice
    Nov 21, 2009 6:57:18 PM oracle.adfinternal.model.adapter.webservice.WSDefinition createDataControl
    SEVERE: Ensure that the META-INF/connections.xml exists
    Nov 21, 2009 6:57:18 PM oracle.adfinternal.model.adapter.webservice.WSDefinition createDataControl
    SEVERE: Verify if the connections.xml has valid metadata defined for the webservice connection PersonalData
    Nov 21, 2009 6:57:18 PM oracle.adf.model.adapter.DataControlFactoryImpl createSession
    SEVERE: Exception:
    oracle.adf.model.adapter.AdapterException: DCA-40012: The Web Service call failed. A connection to the target Web Service could not be created.
         at oracle.adfinternal.model.adapter.webservice.WSDefinition.createDataControl(WSDefinition.java:565)
         at oracle.adf.model.adapter.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:173)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:166)
         at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:819)
         at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1070)
         at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:973)
         at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:933)
         at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:939)
         at oracle.adf.model.BindingContext.get(BindingContext.java:896)
         at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1519)
         at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2403)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2348)
         at oracle.adf.model.binding.DCBindingContainer.getDataControl(DCBindingContainer.java:4640)
         at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:430)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2369)
         at oracle.adf.model.binding.DCIteratorBinding.getSortCriteria(DCIteratorBinding.java:3658)
         at oracle.adf.model.binding.DCInvokeMethod.setAssociatedIteratorBinding(DCInvokeMethod.java:851)
         at oracle.adf.model.binding.DCIteratorBinding.cacheRefOnOperation(DCIteratorBinding.java:5263)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.getActionBinding(JUMethodIteratorDef.java:283)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef.isRefreshable(JUMethodIteratorDef.java:59)
         at oracle.adf.model.binding.DCExecutableBindingDef.isRefreshable(DCExecutableBindingDef.java:274)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2888)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2759)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
         at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:80)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:21)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:352)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         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:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    <Nov 21, 2009 6:57:18 PM GMT-07:00> <Error> <HTTP> <BEA-101020> <[ServletContext@16582293[app:PSFTtoADF module:PSFTtoADF-ViewController-context-root path:/PSFTtoADF-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at oracle.adf.model.binding.DCIteratorBinding.getSortCriteria(DCIteratorBinding.java:3658)
         at oracle.adf.model.binding.DCInvokeMethod.setAssociatedIteratorBinding(DCInvokeMethod.java:851)
         at oracle.adf.model.binding.DCIteratorBinding.cacheRefOnOperation(DCIteratorBinding.java:5263)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.getActionBinding(JUMethodIteratorDef.java:283)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef.isRefreshable(JUMethodIteratorDef.java:59)
         Truncated. see log file for complete stacktrace
    >

    DCA-40012: The Web Service call failed. A connection to the target Web Service could not be created.
    First of all test the web service you have created in model project. Right click the web service name and select "Test WebService". If you see any issue(s) while testing fix it first before you run the jspx page.
    Check the port number in the URL and connections.xml, it have to be same.

  • Calling Web Service from Flex (to PeopleSoft)

    I'm new to Flex and web services. I've created a web service
    in PeopleSoft and successfully imported the WSDL into Flex so that
    it has contacted the PS server and returned data (using
    mx:WebService and mx:Operation code I found examples of). However,
    I have been unable to pass a parameter to the service from Flex
    using that code. I then discovered and followed the sample code in
    the Flex-generated package, but no matter what I do I cannot
    successfully supply the "myValue" in the sample shown below. Here
    is Flex's own text in my GetInfo.as file built by Flex:
    * MXML sample code:
    * First you need to map the package where the files were
    generated to a namespace, usually on the <mx:Application>
    tag, like this: xmlns:ws="com.draper.*"
    * Define the service and within its tags set the request
    wrapper for the desired operation
    * <ws:GetInfo id="myService">
    * <ws:FindID_request_var><ws:FindID_request
    Find__CompIntfc__DL_TREE_IB_CI=myValue/>
    * </ws:FindID_request_var>
    * </ws:GetInfo>
    * Then call the operation for which you have set the request
    wrapper value above, like this:
    * <mx:Button id="myButton" label="Call operation"
    click="myService.FindID_send()" />
    My code is:
    <ws:GetInfo id="userRequest">
    <ws:findID_request_var><ws:FindID_request
    Find__CompIntfc__DL_TREE_IB_CI="X"/>
    </ws:findID_request_var>
    </ws:GetInfo>
    When I try to run it, Flex is unhappy with the value I am
    assigning ("X" above) no matter what I put there. If I omit the
    double quotes and try to assign a text input field value (which is
    my goal here), it complains that it expects a double quote. If I
    put almost anything else there, it complains either:
    Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of
    type com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be
    represented as text.
    or, if I try this line, where I attempt to pass a text input
    field:
    <ws:FindID_request
    Find__CompIntfc__DL_TREE_IB_CI="{compID.text}"/>
    then I get:
    1067: Implicit coercion of a value of type String to an
    unrelated type com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape
    Can anyone help with this please?
    Thanks
    Jim

    Chris,
    Thanks. That is what I *was* doing, that got me all data
    returned. The parameter never gets passed in the XML. It acts as if
    a blank was passed and returns everything (just as you would expect
    in the PeopleSoft search page when you just click Find without
    specifying a key). It is expecting a partial key and will return
    all keys that match (find method).
    PS expects the key DL_CS_COMPID, and in Flex I've seen
    Find__CompIntfc__DL_TREE_IB_CI also. So I've tried:
    <mx:request>
    <!-- <DL_CS_COMPID> -->
    <Find__CompIntfc__DL_TREE_IB_CI>
    {compID.text}
    </Find__CompIntfc__DL_TREE_IB_CI>
    <!-- </DL_CS_COMPID> -->
    </mx:request>
    (You can see I currently have dl_cs_compid commented out).
    Both behave identically - they are ignored in the XML that is sent
    from Flex. Here is a sample of what was received in PS:
    <?xml version="1.0"?>
    <M540564.V1:Find__CompIntfc__DL_TREE_IB_CI
    xmlns:M540564.V1="
    http://xmlns.oracle.com/Enterprise/Tools/schemas/M540564.V1"
    xmlns:SOAP-ENV="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"/>
    I believe there should be a
    <DL_CS_COMPID>value</DL_CS_COMPID> string in there.

  • How to connect peoplesoft using bapi?

    how to connect peoplesoft using bapi?
    points will be awarded

    Hi,
    You can actually connect any 2 systems, if they are capable of providing and consuming web services.
    If you want to connect SAP to Peoplesoft to fetch or send data, then Peoplesoft should expose these functionalities in the form of Webservice. Then you will have to create Proxy Objects in SAP by consuming these webservices (SE80). Through this proxy object you can communicate with Peoplesoft.
    Thanks...
    Preetham S
    Message was edited by:
            Preetham S

  • PeopleSoft Campus Solutions (scc_constituent_services)

    Hi Everyone -
    First of all, I'm a PeopleSoft rookie, so please forgive me for posting this in the wrong place, if I am!
    I'm having an issue with a bit of software I'm trying to put together. It's an integration between Microsoft Dynamics CRM and PeopleSoft Campus Solutions. The idea is in the proof-of-concept stage right now, but it's basically this, in a nutshell:
    1 - a User updates a Contact record in Microsoft Dynamics CRM
    2 - when the 'onUpdate' event is complete, a .dll (called a "plugin" in Microsoft-speak) is fired.
    3 - This plugin makes a call to PeopleSoft Campus Solutions' 'scc_constituent_in_sync' web service, and updates the corresponding contact record in the peopleSoft Campus Solutions database.
    At this point, all we're getting is an empty message showing up in the PeopleSoft Integration Broker. Is there ANYONE out there who can take a look at the code below and make a recommendation or two about what might be going wrong with the call to "scc_constituent_in_sync"?
    Code is below.
    Thanks!
    -RCisney
    using System;
    using System.Configuration;
    using System.Data;
    using System.Collections;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.Globalization;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.ServiceModel;
    using System.Runtime.Serialization;
    using System.Text;
    using System.Text.RegularExpressions;
    using System.Xml;
    using System.Web;
    using Microsoft.Crm;
    using System.Xml.Linq;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Query;
    using Microsoft.VisualBasic;
    using SMU_PeopleSoft.scc_constituent_in_sync;
    namespace SMU_PeopleSoft
        public class PSpush : IPlugin
            //postimage values -- "a" for "after"
            public string aUserID = string.Empty;
            public string aNew_emplid = string.Empty;
            public string aBirthdate = string.Empty;
            public string aFamilystatuscode = string.Empty;
            public string aGender = string.Empty;
            public string aEducation = string.Empty;
            public string aFtstudent = string.Empty;
            public string aSalutation = string.Empty;
            public string aSuffix = string.Empty;
            public string aFirstname = string.Empty;
            public string aLastname = string.Empty;
            public string aMiddlename = string.Empty;
            public string aAddrName = string.Empty;
            public string aCountry = string.Empty;
            public string aStreet1 = string.Empty;
            public string aStreet2 = string.Empty;
            public string aStreet3 = string.Empty;
            public string aCity = string.Empty;
            public string aCounty = string.Empty;
            public string aState = string.Empty;
            public string aPostalcode = string.Empty;
            public string aEmailaddress1 = string.Empty;
            private void writefile(String strInput)
                string fileName = "C:\\Users\\SPN01375\\Desktop\\TextFiles\\PluginOutput.txt";
                StreamWriter objWriter = new StreamWriter(fileName);
                objWriter.Write(strInput);
                objWriter.Close();
            public void Execute(IServiceProvider serviceProvider)
                //Important step 1: get context
                IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
                //Important step 2:  set up the webservice instance (the right way)
                IOrganizationServiceFactory factory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
                IOrganizationService service = factory.CreateOrganizationService(context.UserId);
                //Important step 3:  Set up Tracing, since there is no <bleep> debugger for CRMOnline....
                ITracingService tracer = (ITracingService)serviceProvider.GetService(typeof(ITracingService));
                //now - we *know* we're in a plugin - everything else goes in a try/catch for good error handling.
                try
                    tracer.Trace("starting TRY");
                    if (context.InputParameters.Contains("Target") && (context.InputParameters["Target"] is Entity))
                        Entity ctContact = (Entity)context.InputParameters["Target"];
                        if (ctContact.LogicalName == "contact")
                            tracer.Trace("starting trace operations on CONTACT entity!");
                            if (ctContact.Id != null) // this is a new record.  don't fire now
                            //if(ctContact.GetAttributeValue<>("contactid") == null) // this is a new record.  don't fire now
                            //if (context.OutputParameters.Contains("id"))
                                Entity retContact = new Entity("contact");
                                ColumnSet cols = new ColumnSet(true);
                                retContact = service.Retrieve("contact", ctContact.Id, cols);
                                tracer.Trace("1");
                                if (retContact.Attributes["new_emplid"] != null)// this *MUST* be a record existing in PeopleSoft or Don't Fire
                                    //  CREATE THE WEB SERVICE INSTANCE and the Request container>>
                                    SCC_CONSTITUENT_IN_SYNC psSvc = new SCC_CONSTITUENT_IN_SYNC();
                                    SCC_CONSTITUENT_IN_SYNC_DS_TypeShape psReq = new SCC_CONSTITUENT_IN_SYNC_DS_TypeShape();
                                    tracer.Trace("begin postimage values");
                                    // LIST ALL ( Updateable )VALUES on the Dynamics CRM Side.  Yes its ugly - but this is a POC.  No elegance points!
                                    // note:  nothing magic about the 'a' prefix.  it just means "after" (after the 'Save' event)...
                                    if (retContact.Attributes.ContainsKey("new_emplid"))
                                        aNew_emplid = retContact.Attributes["new_emplid"].ToString();
                                    if (retContact.Attributes.ContainsKey("birthdate"))
                                        aBirthdate = retContact.Attributes["birthdate"].ToString();
                                    if (retContact.Attributes.ContainsKey("familystatuscode"))
                                        aFamilystatuscode = ((Microsoft.Xrm.Sdk.OptionSetValue)(retContact.Attributes["familystatuscode"])).Value.ToString();
                                    if (retContact.Attributes.ContainsKey("gendercode"))
                                        aGender = ((Microsoft.Xrm.Sdk.OptionSetValue)(retContact.Attributes["gendercode"])).Value.ToString();
                                    if (retContact.Attributes.ContainsKey("educationcode"))
                                        aEducation = ((Microsoft.Xrm.Sdk.OptionSetValue)(retContact.Attributes["educationcode"])).Value.ToString();
                                    if (retContact.Attributes.ContainsKey("new_ftstudent"))
                                        aFtstudent = retContact.Attributes["new_ftstudent"].ToString();
                                    if (retContact.Attributes.ContainsKey("salutation"))
                                        aSalutation = retContact.Attributes["salutation"].ToString();
                                    if (retContact.Attributes.ContainsKey("suffix"))
                                        aSuffix = retContact.Attributes["suffix"].ToString();
                                    if (retContact.Attributes.ContainsKey("firstname"))
                                        aFirstname = retContact.Attributes["firstname"].ToString();
                                    if (retContact.Attributes.ContainsKey("lastname"))
                                        aLastname = retContact.Attributes["lastname"].ToString();
                                    if (retContact.Attributes.ContainsKey("middlename"))
                                        aMiddlename = retContact.Attributes["middlename"].ToString();
                                    if (retContact.Attributes.ContainsKey("address1_name"))
                                        aAddrName = retContact.Attributes["address1_name"].ToString();
                                    if (retContact.Attributes.ContainsKey("address1_country"))
                                        aCountry = retContact.Attributes["address1_country"].ToString();
                                    if (retContact.Attributes.ContainsKey("address1_line1"))
                                        aStreet1 = retContact.Attributes["address1_line1"].ToString();
                                    if (retContact.Attributes.ContainsKey("address1_line2"))
                                        aStreet2 = retContact.Attributes["address1_line2"].ToString();
                                    if (retContact.Attributes.ContainsKey("address1_line3"))
                                        aStreet3 = retContact.Attributes["address1_line3"].ToString();
                                    if (retContact.Attributes.ContainsKey("address1_city"))
                                        aCity = retContact.Attributes["address1_city"].ToString();
                                    if (retContact.Attributes.ContainsKey("address1_county"))
                                        aCounty = retContact.Attributes["address1_county"].ToString();
                                    if (retContact.Attributes.ContainsKey("address1_stateorprovince"))
                                        aState = retContact.Attributes["address1_stateorprovince"].ToString();
                                    if (retContact.Attributes.ContainsKey("address1_postalcode"))
                                        aPostalcode = retContact.Attributes["address1_postalcode"].ToString();
                                    if (retContact.Attributes.ContainsKey("emailaddress1"))
                                        aEmailaddress1 = retContact.Attributes["emailaddress1"].ToString();
                                    //set the "after" userID to a Value
                                    scc_constituent_in_sync.EMPLID_TypeShape _emplid = new scc_constituent_in_sync.EMPLID_TypeShape();
                                    scc_constituent_in_sync.BIRTHDATE_TypeShape _Birthdate = new scc_constituent_in_sync.BIRTHDATE_TypeShape();
                                    scc_constituent_in_sync.MAR_STATUS_TypeShape _Familystatuscode = new scc_constituent_in_sync.MAR_STATUS_TypeShape();      // 1=S/2=M/3=D/4=W
                                    scc_constituent_in_sync.SEX_TypeShape _Gender = new scc_constituent_in_sync.SEX_TypeShape();             //1=M; 2=F
                                    scc_constituent_in_sync.HIGHEST_EDUC_LVL_TypeShape _Education = new scc_constituent_in_sync.HIGHEST_EDUC_LVL_TypeShape();//0=A; 1=B
                                    scc_constituent_in_sync.FT_STUDENT_TypeShape _Ftstudent = new scc_constituent_in_sync.FT_STUDENT_TypeShape();      //1=Y; 0=N
                                    scc_constituent_in_sync.NAME_PREFIX_TypeShape _Salutation = new scc_constituent_in_sync.NAME_PREFIX_TypeShape();
                                    scc_constituent_in_sync.NAME_SUFFIX_TypeShape _Suffix = new scc_constituent_in_sync.NAME_SUFFIX_TypeShape();
                                    scc_constituent_in_sync.FIRST_NAME_TypeShape _Firstname = new scc_constituent_in_sync.FIRST_NAME_TypeShape();
                                    scc_constituent_in_sync.LAST_NAME_TypeShape _Lastname = new scc_constituent_in_sync.LAST_NAME_TypeShape();
                                    scc_constituent_in_sync.MIDDLE_NAME_TypeShape _Middlename = new scc_constituent_in_sync.MIDDLE_NAME_TypeShape();
                                    scc_constituent_in_sync.ADDRESS_TYPE_TypeShape _AddrName = new scc_constituent_in_sync.ADDRESS_TYPE_TypeShape();
                                    scc_constituent_in_sync.COUNTRY_TypeShape _Country = new scc_constituent_in_sync.COUNTRY_TypeShape();
                                    scc_constituent_in_sync.ADDRESS1_TypeShape _Street1 = new scc_constituent_in_sync.ADDRESS1_TypeShape();
                                    scc_constituent_in_sync.ADDRESS2_TypeShape _Street2 = new scc_constituent_in_sync.ADDRESS2_TypeShape();
                                    scc_constituent_in_sync.ADDRESS3_TypeShape _Street3 = new scc_constituent_in_sync.ADDRESS3_TypeShape();
                                    scc_constituent_in_sync.CITY_TypeShape _City = new scc_constituent_in_sync.CITY_TypeShape();
                                    scc_constituent_in_sync.COUNTY_TypeShape _County = new scc_constituent_in_sync.COUNTY_TypeShape();
                                    scc_constituent_in_sync.STATE_TypeShape _State = new scc_constituent_in_sync.STATE_TypeShape();
                                    scc_constituent_in_sync.POSTAL_TypeShape _Postalcode = new scc_constituent_in_sync.POSTAL_TypeShape();
                                    scc_constituent_in_sync.EMAIL_ADDR_TypeShape _Emailaddress1 = new scc_constituent_in_sync.EMAIL_ADDR_TypeShape();
                                    tracer.Trace("3");
                                    _emplid.Value = aNew_emplid;
                                    _Birthdate.Value = Convert.ToDateTime(aBirthdate);
                                    switch (Convert.ToInt32(aFamilystatuscode))
                                        case 4:
                                            _Familystatuscode.Value = "W";
                                            break;
                                        case 3:
                                            _Familystatuscode.Value = "D";
                                            break;
                                        case 2:
                                            _Familystatuscode.Value = "M";
                                            break;
                                        case 1:
                                            _Familystatuscode.Value = "S";
                                            break;
                                        default:
                                            _Familystatuscode.Value = "S";
                                            break;
                                    _Gender.Value = (Convert.ToInt32(aGender) == 1) ? "M" : "F";
                                    switch (Convert.ToInt32(aEducation))
                                        case 5:
                                            _Education.Value = "F";
                                            break;
                                        case 4:
                                            _Education.Value = "E";
                                            break;
                                        case 3:
                                            _Education.Value = "D";
                                            break;
                                        case 2:
                                            _Education.Value = "C";
                                            break;
                                        case 1:
                                            _Education.Value = "B";
                                            break;
                                        default:
                                            _Education.Value = "A";
                                            break;
                                    _Ftstudent.Value = (aFtstudent == "True") ? "Y" : "N";
                                    _Salutation.Value = aSalutation;
                                    _Suffix.Value = aSuffix;
                                    _Firstname.Value = aFirstname;
                                    _Lastname.Value = aLastname;
                                    _Middlename.Value = aMiddlename;
                                    _AddrName.Value = aAddrName;
                                    _Country.Value = aCountry;
                                    _Street1.Value = aStreet1;
                                    _Street2.Value = aStreet2;
                                    _Street3.Value = aStreet3;
                                    _City.Value = aCity;
                                    _County.Value = aCounty;
                                    _State.Value = aState;
                                    _Postalcode.Value = aPostalcode;
                                    _Emailaddress1.Value = aEmailaddress1;
                                    psSvc.CallSCC_CONSTITUENT_IN_SYNC(psReq);
                                else // it's not an existing PeopleSoft Contact
                                    writefile("NOT A PS CONTACT:");
                            else
                                //this is a new record altogether.  don't fire.
                                writefile("NOTHING TO SEE HERE.  MOVE ALONG:");
                catch (Exception ex)
                    //handle any error - basically here wer'e just throwing the trace message(s).
                    tracer.Trace("Encountered Program Exception at : {0}", ex);
    }

    Make sure emplid is part of your key structure (if its a key on the base component).
    you can also acheive this by putting code behind rowinit or save, but its preferable for component processor to take care of this.
    Subhash

Maybe you are looking for

  • BLOB access using PL/SQL or SQL

    I have the following script which creates a table and populates it including an employee picture in a BLOB column. -- * cr_lob.sql * -- * created by Lloyd R. Weaver * -- * February 24, 2003 * Connect SYSTEM/MANAGER -- * Initial cleanup * DROP USER OR

  • Why don't Digital Signatures hold up is a browser based PDF workflow

    Hello, I am trying to set up with my company the possibility of routing a PDF file via the upload Browser option. The comments seem to upload and show the changes, but when someone signs the document, it says its going to make a copy and if I just cl

  • My iphone doesn't work after changing cards from us to polish ones

    Hi, I've got a problem. I took my iphone 5s from usa to poland i put polish card and everything was ok but then i changed cards twice and my iphone is blocked now. It says it is not the fault of the phone but i should install the card SIM which is se

  • What's New in Thunderbird 3.1! Screen (Cant find Thunderbird support?)

    I cant find Thunderbird support! How do I prevent the "What's New in Thunderbird 3.1!" screen loading every time I start Thunderbird? Thanks.

  • IMovie HD can't import iTunes songs

    I recently updated my iTunes to 7.5 and everything seemed to work fine, I've purchased new songs and they all work plus the old ones also work. Now in the middle of making a movie with iMovie HD (5.0.2) I discovered that when I click on audio and try