My Oracle Support Banner

Web Service Manager Does Not Recognize Custom Opcode, Throws Error "java.lang.Exception: Converting opcode name "MY_OP_CUST_CREATE_DEPOSIT" to opcode number" (Doc ID 2116178.1)

Last updated on DECEMBER 14, 2017

Applies to:

Oracle Communications Billing and Revenue Management - Version to [Release 7.5.0]
Information in this document applies to any platform.


On : version, Web Service Manager,


*  Deployed custom opcode as per documentation : Creating a Custom Web Service

*  But web service manager does not recognize custom opcode and not able to call opcode from other SOAP clients.

Error seen is as below:

<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi="">
<faultcode xmlns:ns1="">ns1:Server.userException</faultcode>
<faultstring>javax.xml.rpc.soap.SOAPFaultException: java.lang.Exception: Converting opcode name "MY_OP_CUST_CREATE_DEPOSIT" to opcode number</faultstring>
<ns2:stackTrace xmlns:ns2="">javax.xml.rpc.soap.SOAPFaultException: java.lang.Exception: Converting opcode name "MY_OP_CUST_CREATE_DEPOSIT" to opcode number
at com.portal.webservices.OpcodeCaller.opcodeWithFlags(
at com.portal.webservices.OpcodeCaller.opcode(
at com.portal.webservices.InfranetWebService.opcode(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.axis.strategies.InvocationStrategy.visit(
at org.apache.axis.SimpleChain.doVisiting(
at org.apache.axis.SimpleChain.invoke(

Steps to reproduce:

1. Create header file (.h) file for custom opcode.
2. parse_custom_ops_fields -L pcmjava -I input -O output -P
3. Compile file (javac -d . from location where java file was present
4. Class file created in com/portal/opt/optap as package is defined there
5. Create file manually
6. Compile same as , generate class file in com/portal/MY/MYop location
7. Create jar file with both class files by jar -cvf MYop.jar com/potal/MY/MYop/*.class
8. Move OOTB webservice war file to temp dir
9. Extract webservice by jar -xvf infranetwebsvc
10. Go to WEB-INF dir of extracted OOTB war file
11. Copy custom jar (MYop.jar) file into WEB-INF/lib
12. Add custom entry into WEB-INF/classes/Infranet.propertes file

13. Create war file again
14. Deploy on Weblogic
15. Execute the custom opcode using a soap client, with below input, it throws the error indicated above

<soapenv:Envelope xmlns:xsi=""
<opcode soapenv:encodingStyle="" >
<opcode xsi:type="xsd:string">MY_OP_CUST_CREATE_DEPOSIT</opcode>
<m_SchemaFile xsi:type="xsd:string">MY_OP_CUST_CREATE_DEPOSIT.xsd</m_SchemaFile>
<inputXML xsi:type="xsd:string">
<ACCOUNT_OBJ> /account 567703 0</ACCOUNT_OBJ>
<POID> /MY_deposit_log -1 0</POID>
<PROFILE_OBJ> /profile/cont 572692 0</PROFILE_OBJ>

 16.  Note that when the same is executed with opcode number instead of opcode name, it goes through fine.

Question :

How to resolve this issue?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.