Unable to invoke java proxy in PI 7.1
Hi ,
I am using NWDS 7.2 (Trial ver) and using it to deploy java proxy on PI 7.1.
I also registered the interface using http://<pi>:<port>/ProxyServer url
But when I invoke the proxy I get the error as
"Cannot locate proxy bean"
Please tell me what to do...
regards,
Piyush
Hi,
This sort of error usually comes when JPR cannot find the deployed java server proxy bean.
1) Register ur server proxy using this :
http://host:port/ProxyServer/register?ns=xxx&interface=SI_Proxy_IA&bean=localejbs/Jndi-name&method=method name
refer this: http://help.sap.com/saphelp_nw04/helpdata/en/a4/d5b3b0b16843b3867c0245d9847ae5/content.htm
2)Chk whether u have mentioned the corrcet JNDI name while registering the URL.
3) Chk ur JNDI name under NWA.
4) Chk ur references under application-j2ee-engine.xml.
<?xml version="1.0" encoding="UTF-8"?>
<application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd">
<reference reference-type="weak">
<reference-target provider-name="sap.com" target-type="library">com.sap.aii.af.sdk.lib</reference-target>
</reference>
<reference reference-type="weak">
<reference-target provider-name="sap.com" target-type="service"> com.sap.aii.proxy.svc</reference-target>
</reference>
<reference reference-type="weak">
<reference-target provider-name="sap.com" target-type="library">com.sap.xi.util.misc</reference-target>
</reference>
<reference reference-type="weak">
<reference-target provider-name="sap.com" target-type="library">com.sap.guid</reference-target>
</reference>
</application-j2ee-engine>
Thanks
Amit
Similar Messages
-
Unable to invoke Java WSIF Binding process
Hi,
I am using BPEL 10.1.3.1 version.
- I created Greeting.java, then from JDev generate WebService for class but did not publish or deploy as web service
- in BPEL created one partner link using same wsdl file from local file system
- put invoke activity to call this partner link
- deployed process
- copied all class file with package folder inside $ORACLE_HOME/bpel/system/classes folder
When i initiate the process i get error
Failed get wsdl service definition.
Failed to get a WSDL service that support the portType "{http://BusinessProcess/}Greeting" in WSDL definition "{http://BusinessProcess/}Greeting".
Please verify that WSDL portType "{http://BusinessProcess/}Greeting" is supported by a service in WSDL file.
Please help.Hi Jack
Does your WSDL have the "binding" and "service" section? I do not use JDev or anything else to create the WSDL for me, I create it by hand so I don´t know how to help you in JDev, but it seens that JDev does not generate this sections and you must set then in order to use WSIF Bindings to Java or EJB.
Regards
Marcelo -
Unable to invoke Java WSIF Binding wsdl from BPEL
Hi,
I am using BPEL 10.1.3.1 version.
- I created Greeting.java, then from JDev generate WebService for class but did not publish or deploy as web service
- in BPEL created one partner link using same wsdl file from local file system
- put invoke activity to call this partner link
- deployed process
- copied all class file with package folder inside $ORACLE_HOME/bpel/system/classes folder
When i initiate the process i get error
Failed get wsdl service definition.
Failed to get a WSDL service that support the portType "{http://BusinessProcess/}Greeting" in WSDL definition "{http://BusinessProcess/}Greeting".
Please verify that WSDL portType "{http://BusinessProcess/}Greeting" is supported by a service in WSDL file.
Please help.Hi Jack
Does your WSDL have the "binding" and "service" section? I do not use JDev or anything else to create the WSDL for me, I create it by hand so I don´t know how to help you in JDev, but it seens that JDev does not generate this sections and you must set then in order to use WSIF Bindings to Java or EJB.
Regards
Marcelo -
I am not able to invoke a web service deployed on WebLogic 8.1 SP2 via a client using the proxy jar provided by WebLogic's JWS > Overview > Generate Java Proxy tool.
I am getting a java.net.ConnectException.
Both the client and the WebService are on the same server.
Thanks!!
Inder./Please see the instructions below. If this does not help, please open a case with customer support and tell them it may be related to CR235479
DESCRIPTION:
When a platform domain is created, the admin server can be started without
any issues and a managed server can also be started without any errors if
using startManagedWebLogic.sh. But when a managed server is started using the
nodemanager, the managed server fails to start with the following error.
The WebLogic Server did not start up properly.
java.lang.NoClassDefFoundError: com/bea/wsrp/util/debug/Debug
(Complete stack trace with be added as a note)
The reason for this is that:
startWebLogic.sh(cmd) and startManagedWebLogic.sh(cmd) for platform domains
call <User domain>/setDomainEnv.sh which includes all the jars necessary for
a platform domain in the CLASSPATH.
Whereas startNodeManager.sh calls <WL_HOME>/common/bin/commEnv.sh, which is
the same for both platform and server installations of weblogic and has only
weblogic.jar in the CLASSPATH.
Looking at historical cases, the steps to start NodeManager successfully in a
platform domain are:
1.
a. Copy admin server classpath (from <user Domain>/startWebLogic.sh) to
that of all managed servers in the 'Remote Start' tab of the WLS Console
OR
b. Copy admin server classpath to <WL_HOME>/server/bin/startNodeManager.sh
(If the same nodemanager is used to manage server domain servers and platform
domain servers, will there be any issue with this approach??)
2. Copy the wsrpKeystore.jks file from your domain directory to the
nodemanager directory (the parent of the directory where all the server
directories are replicated in the node manager. By default: <WL
HOME>/common/nodemanager)
But these steps are not publicly documented in edocs.
CONFIGURATION:
Weblogic Platform Domain 8.1 (all service packs)
WORKAROUND:
Steps 1 and 2 above. -
How to invoke a proxy service from a java client
Hi all,
how could I invoke a proxy service from a java client ?
The proxy service type is 'any xml service' with http protocol.
For a proxy with web service type I can export the related WSDL and generate the java client source.
With 'any xml service' there is no associated wsdl and I'm wondering how to do that.
Thanks
ferpHi Ferp,
I used ClientGEN to generate client files from WSDL deployed in ALSB. You can also use Axis for client file generation.
You need to know the WSDL URL. Generate Client files from WSDL URL.
Sample ANT Script
<project name="simple-web" default="mytask" basedir=".">
<taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" classpath="C:\bea92\weblogic92\server\lib\weblogic.jar"/>
<target name="mytask" description="Generate web service client">
<clientgen wsdl="http://<hostname>:<port>/URL?WSDL"
destDir="src"
packageName="com.client.mytask"
classpath="${java.class.path}" />
</target>
</project>
Use the following JAVA Code,
try {
ActivationService service = new ActivationService_Impl("http://<hostname>:<port>/url?WSDL");
client = service.getActivationServicePort();
} catch (Exception ex) {
// Handle Exception
client.activateNumber();
Let me know if you need any more information.
Thanks,
Suman. -
RFC - Java Proxy (Synchronous) invoking method
Hi,
I have problems to call my inbound java proxy.
My scenario consist of send RFC -> Java Proxy (Synchronous)
Proxy this registered
http://hcp095.intra.csc.es:50100/ProxyServer/register?ns=http://csc.es/xi/rca&interface=Z_RCA_SCS&bean=ZRCASCS_PortTypeBean&method=zRCASCS
ejb-jar.xml:
<ejb-jar>
<description>EJB JAR description</description>
<display-name>EJB JAR</display-name>
<enterprise-beans>
<session>
<ejb-name>ZRCASCS_PortTypeBean</ejb-name>
<home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4</home>
<remote>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4</remote>
<local-home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome4</local-home>
<local>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4</local>
<ejb-class>es.csc.xi.rca.ZRCASCS_PortTypeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
Class Impl:
package es.csc.xi.rca;
public class ZRCASCS_PortTypeImpl extends AbstractProxy implements ZRCASCS_PortType {
public ZRCASCSResponse_Type zRCASCS(ZRCASCS_Type parameters) throws ZRCASCSException_Message_Exception, SystemFaultException, ApplicationFaultException{
//throw new RuntimeException();
Rca_ws a = new Rca_ws();
return a.zRCASCS(parameters);
Error: XI_Monitor
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method zRCASCS of proxy bean $Proxy305: cannot assign instance of com.sap.guid.GUID to field com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl.guid of type com.sap.guid.IGUID in instance of com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method zRCASCS of proxy bean $Proxy305: cannot assign instance of com.sap.guid.GUID to field com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl.guid of type com.sap.guid.IGUID in instance of com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
Error: defaultTrace
#hcp095.intra.csc_XID_19271950#ANGUZMAN#ec20b7f019f611de98340011259e6830#
SAPEngine_Application_Thread[impl:3]_36##0#0#Error##Plain##
#com.sap.aii.proxy.xiruntime.core.XmlProxyException: Error invoking method zRCASCS of proxy bean $Proxy366:
cannot assign instance of com.sap.guid.GUID to field com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl.guid
of type com.sap.guid.IGUID in instance of com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl
at com.sap.aii.proxy.xiruntime.core.XmlProxyJ2EE.call(XmlProxyJ2EE.java:192)
at com.sap.aii.proxy.xiruntime.core.XmlProxy$ProxyBeanCaller.call(XmlProxy.java:225)
at com.sap.aii.proxy.xiruntime.core.XmlProxy.processRequest(XmlProxy.java:194)
at com.sap.aii.proxy.xiruntime.core.XmlInbound.processRequestMessage(XmlInbound.java:126)
at com.sap.aii.proxy.xiruntime.core.XmlInbound.processMessage(XmlInbound.java:83)
at com.sap.aii.proxy.xiruntime.sbeans.JPRBean.onMessage(JPRBean.java:158)
at com.sap.aii.proxy.xiruntime.sbeans.JPRLocalLocalObjectImpl0_0.onMessage(JPRLocalLocalObjectImpl0_0.java:175)
at com.sap.aii.af.ra.ms.impl.ServicesImpl.deliver(ServicesImpl.java:276)
at com.sap.aii.adapter.xi.ms.XIEventHandler.onDeliver(XIEventHandler.java:1049)
at com.sap.aii.af.ra.ms.impl.core.queue.RequestConsumer.onMessage(RequestConsumer.java:119)
at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:850)
at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:180)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
If somebody can help me.
Thank you very muchSolved!!!
to assign library references to the project application-j2eeengine.xml
com.sap.aii.proxy.xiruntime
com.sap.aii.messaging.runtime
com.sap.xi.util.misc
com.sap.guid -
Unable to invoke endpoint URI: java.security.NoSuchAlgorithmException
Help me!! Please!! I´m traying to invoke https service from SOA composite but I have this error. I installed SSL certificate in DemoTrus.jks in WebLogic.
<summary>
oracle.fabric.common.FabricInvocationException: Unable to invoke endpoint URI "https://190.187.158.19/ServicioSIP/Service1.svc" successfully due to: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
</summary>
</part>
-<part name="detail">
<detail>
Unable to invoke endpoint URI "https://190.187.158.19/ServicioSIP/Service1.svc" successfully due to: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
</detail>
</part>
-<part name="code">
<code>null</code>
Regards,Before I set the "-Djavax.net.ssl.trustStore=<path of soa-trust.jks> -Djavax.net.ssl.trustStorePassword=<soa-trust.jks password>" to start the Manage Node, I got following error:
<?xml version="1.0" encoding="UTF-8"?><bpelFault>
<faultType>0</faultType>
<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
<part name="summary">
<summary>oracle.fabric.common.FabricInvocationException: Unable to invoke endpoint URI "https://myserver:myport/Agile/integration/services/ChangeABS" successfully due to: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</summary>
</part>
<part name="detail">
<detail>Unable to invoke endpoint URI "https://myserver:myport/Agile/integration/services/ChangeABS" successfully due to: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</detail>
</part>
<part name="code">
<code>null</code>
</part>
</remoteFault>
</bpelFault> -
Error invoking client Java Proxy
I have a scenario with Client Java Proxy in which a JSP gives call to the EJBs generated from the Message interface. Everything is deployed correctly and when I try to invoke the JSP, following error is reported in the defaultTrace file of J2EE engine.
com.sap.aii.proxy.xiruntime.core.XmlLandscapeAccess.getJPRConfigurationFromSLD()
Error getting JPR configuration from SLD. Exception: entityNotFound#
I found pointers to SAP Note # 809420 as a result of SDN search.
Has anybody faced similar situation?
Regards,
AmolStefan,
Things worked after the business system was created in SLD.
I dont see the radio buttons for rewarding points against your post. Will try later to reward points.
Thanks for your help.
Regards,
Amol -
OWSM 11g: Invoking a secured web service through a java proxy service
Hi All,
I am trying to call a secured bpel service which is expecting a username token password. I have created a java proxy service for the same. I now need to add the username token to the same. Can anyone please guide me in this regard.
Thanks in advance.Just to add some pointers,
I added the following code to the proxy still the soap headers is not getting propagated.
OrderBookingAndShipment orderBookingAndShipment = orderbookingandshipment_client_ep.getOrderBookingAndShipment_pt();
String username = "OWSM_11g";
String password = "password";
List credProviders = new ArrayList();
//client side UsernameToken credential provider
CredentialProvider cp = new ClientUNTCredentialProvider(username.getBytes(),password.getBytes());
credProviders.add(cp);
Map<String,Object> context = ((BindingProvider) orderBookingAndShipment).getRequestContext();
context.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST,credProviders); -
JNDI NameNotFoundException in java proxy
Hello All,
We are using a.jsp file that uses client proxy to send data to XI. We have crated the required .ear and have deployed it to the J2EE server.
The ejb-j2ee-engine.xml contains the following
<ejb-j2ee-engine>
<enterprise-beans>
<enterprise-bean>
<ejb-name>JavaProxyTest</ejb-name>
<ejb-ref>
<ejb-ref-name>ejb/JavaProxyTest</ejb-ref-name>
<jndi-name>ejb/JavaProxyTest</jndi-name>
</ejb-ref>
<session-props/>
</enterprise-bean>
</enterprise-beans>
</ejb-j2ee-engine>
The java class that invokes the proxy bean has follwoing lines of code......
Context ctx = null;
Object ref = null;
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
p.put(Context.PROVIDER_URL, "zhmscad5:50000");
p.put(Context.SECURITY_PRINCIPAL, "qqsaraa");
p.put(Context.SECURITY_CREDENTIALS, "patni123");
System.out.println("1.0 -
JavaProxy_BSER cONTEXT cREATED");
ctx = new InitialContext(p);
System.out.println("1.1 -
JavaProxy_BSER cONTEXT cREATED");
queryOutLocalHome =(USERNAMESYNCABSMI_PortTypeLocalHome)ctx.lookup("/localejbs/sap.com/JavaProxyTest");
When we are trying to send the data through .jsp file we are getting the following error:
Error:
com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/ejb/JavaProxyTest
I am unable to figure out what should be JNDI name and how to use it in the java file
queryOutLocalHome =(USERNAMESYNCABSMI_PortTypeLocalHome)ctx.lookup("/localejbs/sap.com/JavaProxyTest");
Any help on the above issue will be appriciated.
Thanks
AbinashHello,
I am calling ejb from .jsp use following code
Properties props = new Properties();
InitialContext ctx = new InitialContext();
Object ob = ctx.lookup("java:comp/env/ejb/CalculatorBean");
CalculatorHome home = (CalculatorHome) PortableRemoteObject.narrow(ob, CalculatorHome.class);
calc = home.create();
I have a error:
java.lang.ClassNotFoundException: class com.sap.examples.calculator.beans.CalcProxy : com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at calculator, the whole lookup name is java:comp/env/ejb/CalculatorBean
My ejb-jar.xml is:
<display-name>
CalculatorEjb</display-name>
<enterprise-beans>
<session>
<icon/>
<ejb-name>Calculator</ejb-name>
<home>com.sap.examples.calculator.CalculatorHome</home>
<remote>com.sap.examples.calculator.CalculatorRemote</remote>
<local-home>com.sap.examples.calculator.CalculatorLocalHome</local-home>
<local>com.sap.examples.calculator.CalculatorLocal</local>
<service-endpoint>com.sap.examples.calculator.CalculatorServiceEndpoint</service-endpoint>
<ejb-class>com.sap.examples.calculator.CalculatorBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-ref>
<ejb-ref-name>ejb/CalculatorBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.sap.examples.calculator.CalculatorHome</home>
<remote>com.sap.examples.calculator.CalculatorRemote</remote>
<ejb-link>Calculator</ejb-link>
</ejb-ref>
<ejb-local-ref>
<description/>
<ejb-ref-name>ejb/CalculatorBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.sap.examples.calculator.CalculatorLocalHome</local-home>
<local>com.sap.examples.calculator.CalculatorLocal</local>
<ejb-link>Calculator</ejb-link>
</ejb-local-ref>
</session>
</enterprise-beans>
my ejb-j2ee-engine.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-j2ee-engine
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ejb-j2ee-engine.xsd">
<enterprise-beans>
<enterprise-bean>
<ejb-name>Calculator</ejb-name>
<ejb-ref>
<ejb-ref-name>ejb/CalculatorBean</ejb-ref-name>
<jndi-name>ejb/CalculatorBean</jndi-name>
</ejb-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/CalculatorBean</ejb-ref-name>
<jndi-name>ejb/CalculatorBean</jndi-name>
</ejb-local-ref>
</enterprise-bean>
</enterprise-beans>
</ejb-j2ee-engine> -
How to invoke ALSB proxy service externaly
Hello,
I.m trying to understand the ALSB and stumble across an issue and hope one of you guys (from BEA) can help out?
I've created the services from the Mortgage services tutorial successfully and now I'm trying to invoke the proxy services externally. By externally I mean as a partner link from within Oracle BPEL. So far this does not work. The error message states a missing protocol in the service URL. I checked this and it is true: the wsdl of the proxy service contains only a relative path (/loan/gateway1), so the protocol and server name and port are missing. Further, I tried to change the URI of the proxy service, but ALSB does only allow a relative URI.
My question is: what am I missing so the proxy service can be invoked externally?
I am on the right solution path to invoke a proxy service instead of a business service, right!?
Thank in advance.
Regards,
Harm VerschurenI tracked down the problem. The proxy service and the business service it routes to use rpc encoded. The RPC encoded message comes to the proxy service from BPEL which transmits it without modification to the business service. The WLS web service that impements the business service is unable to decode the message persumably because it did not like the way BPEL encoded the message. Below is the message part that BPEL sent: All the xsitype attributes are part of RPC encoding.If you use the alsb test console to pass this message directly to the business service, you will see the decoding error thrown by wls.
<loanRequest xmlns:pns0="java:normal.client"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns0="http://example.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<pns0:Name xsi:type="xsd:string">Joe</pns0:Name>
<pns0:SSN xsi:type="xsd:string">123456789</pns0:SSN>
<pns0:Rate xsi:type="xsd:double">3</pns0:Rate>
<pns0:Amount xsi:type="xsd:long">50000</pns0:Amount>
<pns0:NumOfYear xsi:type="xsd:int">20</pns0:NumOfYear>
<pns0:Notes xsi:type="xsd:string">test</pns0:Notes>
</loanRequest> -
Error in generating the Java Proxy
Hi all,
While generating a Java Proxy, I am getting an error :
Unable to generate proxies
Construct not supported
Can anybody please suggest the possible reason and solution for the same.
Thanks and best regards,
KulwantIn the Integration Repository documentation for External Definitions you find a hint where you can find a document describing restrictions on the handling of XSD.
In that document you can see, that references to global elements are not supported by the java proxy generation.
Therefore, you have to edit your document accordingly.
regards
chandra -
Error with receiver java proxy
for a XI type communication channel for receiver Java proxy I see following error in SXMB_MONI.
<i>Unable to read user password from communication channel of type Error when accessing the secure store (access ID = 3650CAFA1FBAA04E8F260C6C4C1923FA) Error while reading from the secure store: ERROR_UNKNOWN: Cannot find entry in secure store (SECSTORE,023).</i>
I have specified the correct credentials for the non sap system in authentication data i.e. XIAPPLUSER and its password.
Any pointers?Hi Amol
Did you solved this problem? I am also getting the same error when calling receiver java proxy with Adapter type XI.
If you have solved the problem pl let me know.
Regards
Prahllad -
Unable to invoke webservice from plsql.
Hi i am unable to invoke the web service i am getting the following error when i run the following coe can any one help out its great help thanks you
error->
Invoke_Ws : When Others -- ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException:
Caught exception while handling request: trailing block elements must have an id attribute
set serveroutput on
declare
service_ sys.utl_dbws.SERVICE;
call_ sys.utl_dbws.CALL;
service_qname sys.utl_dbws.QNAME;
port_qname sys.utl_dbws.QNAME;
operation_qname sys.utl_dbws.QNAME;
string_type_qname sys.utl_dbws.QNAME;
retx ANYDATA;
retx_string VARCHAR2(100);
retx_len number;
params sys.utl_dbws.ANYDATA_LIST;
v_Group_Id VARCHAR2(4);
v_Fund_Id VARCHAR2(6);
v_Query_Date DATE;
v_Query_Object VARCHAR2(2);
v_Error_Code VARCHAR2(30);
v_Error_Message VARCHAR2(2000);
begin
service_qname := sys.utl_dbws.to_qname(null, 'RealTime_Valu_WS');
service_ := sys.utl_dbws.create_service(service_qname);
port_qname := sys.utl_dbws.to_qname(null, 'RealTime_Valu_WSSoapHttpPort');
operation_qname := sys.utl_dbws.to_qname('http://RealTime_Valu_WS_Java/RealTime_Valu_WS.wsdl/types/', 'realtimeValWsElement');
call_ := sys.utl_dbws.create_call(service_, port_qname, operation_qname);
sys.utl_dbws.set_target_endpoint_address(call_, 'http://in-blr-tbpel1.igefi.tld/pa360/RealTime_Valu_WS_360/RealTime_Valu_WSSoapHttpPort');
string_type_qname := sys.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
sys.utl_dbws.add_parameter(call_, 'groupId', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'flglnclsoft', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'queryDate', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'queryObject', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'execTimestamp', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'fundId', string_type_qname, 'ParameterMode.IN');
Sys.Utl_dbws.add_parameter(Call_,'Fund_Id' ,String_type_qname,'parameterMode.OUT');
Sys.Utl_dbws.add_parameter(Call_,'Query_Date' ,String_type_qname,'parameterMode.OUT');
Sys.Utl_dbws.add_parameter(Call_,'Query_Object' ,String_type_qname,'parameterMode.OUT');
Sys.Utl_dbws.add_parameter(Call_,'Error_Code' ,String_type_qname,'parameterMode.OUT');
Sys.Utl_dbws.add_parameter(Call_,'Error_Message',String_type_qname,'parameterMode.OUT');
sys.utl_dbws.set_return_type(call_, string_type_qname);
params(1) := ANYDATA.convertvarchar('MP1');
params(2) := ANYDATA.convertvarchar('Y');
params(3) := ANYDATA.convertvarchar('2009-01-30');
params(4) := ANYDATA.convertvarchar('C');
params(5) := ANYDATA.convertvarchar('00:00');
params(6) := ANYDATA.convertvarchar('MPNWS');
dbms_output.put_line('BEFORE INVOKING');
retx := sys.utl_dbws.invoke(call_, params); dbms_output.put_line('BEFORE PL/SQL DII client return ' || retx_string);
retx_string := retx.accessvarchar2;
dbms_output.put_line('AFTER PL/SQL DII client return ' || retx_string);
v_Group_Id := PARAMS(7).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Fund_Id := PARAMS(8).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Query_Date := PARAMS(9).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Query_Object := PARAMS(10).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Error_Code := PARAMS(11).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Error_Message := PARAMS(12).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return ' || retx_string);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Invoke_Ws : When Others -- '||SQLERRM(SQLCODE));
end;
my code is working only before the line of invoke statement..when invoke line is executed i am getting the error above mentioned
so any help!
thanks
VijayJinkala wrote:
any helpDon't use Java when PL/SQL is perfectly capable of doing the task at hand?
I have an inherent dislike of systems and application that have too many moving parts. Keep the moving parts to a minimum.. and the code is faster, more robust, and a lot easier to read, understand and maintain.
So in that regard, I do not understand what the deal is with utl_dbws and why it could not just use plain vanilla PL/SQL..? But then there are likely Java faithful that proclaims The Religion too when designing PL/SQL interface packages in Oracle... :-(
I've posted an example of how to call a web service using PL/SQL code only, no Java, in {message:id=4205205}. -
How to generate java proxy in PI 7.1
Hi All,
How do I generate java proxy in PI 7.1
I am unable to see the "Generate Java Proxy" in the Tools menu in the Integration Builder
Edited by: Piyush Mathur SAP on Apr 15, 2010 11:14 AM
Edited by: Piyush Mathur SAP on Apr 15, 2010 11:14 AMhi ,
As mentioned in the Question, I am unable to find the "Java Proxy Generattion" link in the Int builder.
Also the help doc says:
Java proxy generation is no longer supported in subsequent releases. For new developments or when making significant changes to a service interface, use Java proxy generation in SAP NetWeaver Studio instead. More information: Creating Outside-In Web Services, SAP NetWeaver Developer Studio.
Does that mean that I can no longer generate java proxy from Int builder?
regards,
Piyush
Maybe you are looking for
-
A problem with hyperlinks in my Interactive PDF on smartphones...
I hope someone can help... I exported both an interactive and for print PDF from inDesign. When I view the PDFs on my pc the hyperlinks that I've made in the document work perfectly fine. When I view the PDFs on my smartphone, the hyperlinks don't
-
Messed up font rendering in Acrobat 8 after pdf minor edit
I was given a pdf to make a minor spelling edit which involved opening the InDesign original, correcting the placed(as a graphic)pdf page (using advanced editing/text touch up tool). This always worked fine in Acrobat 7. I then updated in the Indd fi
-
10.6.8 combo & 10.6.7 pdf fonts problem
Does the 10.6.8 update combo correct the pdf fonts problem that was inherent to 10.6.7? After a couple days of stress I had to do the lengthy 10.6.7 uninstall process in order to refine my doctoral dissertation. This has made me gun-shy & fearful o
-
Elements 5.0 Organizer Freezing when I try to download photos from camera
I am trying to download pictures from my vacation. I plugged in my camera like usual, and when I select for my pictures to be downloaded in photoshop, everything freezes. Then I went into organizer - which I could open - but when I go to get photos
-
Unit Selling Price Override through PROCESS_ORDER API
Hi All, I have this below requirement to be achieved through process_order API. 1. In the Order Oganizer UI, I open the Order Entry form. 2. Open the Lines tab 3. For the Unit Selling Price, I change the price manually and tab out. 4. Its gives me a