Web Service - Cannot Deploy on Local OC4J

We get the following error when trying to deploy the following code as a web service to the local OC4J.
The parameter of domDoc of type oracle.xml.parser.v2.XMLDocument cannot be serialized into XML, and no custom serializer has been defined for it.
All we want to do with this service is connect to the database and return the results of the query in XML. We have tried a string, but it returns a string of XML and we need it to return the XML.
The code compiles, runs, and looks as though it is returning what it is suppose to if we write the return out, but the code will not deploy as a web service.
Thanx so much
Pam
This is the code:
package getuserform;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import oracle.xml.parser.v2.XMLDocument;
import oracle.xml.sql.query.OracleXMLQuery;
public class getUserInfo {
public int GetUserInfo(XMLDocument domDoc){
try {
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
} catch (SQLException e) {
// TODO
return(-1);
String url = "jdbc:oracle:thin:@db:1521:v9it";
Connection myCon;
try {
myCon = DriverManager.getConnection(url,"user","password");
} catch (SQLException e) {
// TODO
return(-1);
OracleXMLQuery qry = new OracleXMLQuery (myCon,
"select upper(t.u_name_frst) || ' ' || upper(t.u_name_last) U_Name," +
" t.user_id, " +
" t.active Active, " +
" to_char(t.termination_dt, 'DD-MON-YYYY') Termination_DT, " +
" '(' || t.area_code || ') ' || t.phone_no Phone, " +
" t.email Email, " +
" t.city City, " +
" (select dpl_desc from schema.dept_pay_locations dpl where dpl.dpl_num = t.pay_location) Pay_Location, " +
" t.LOCATION Location " +
" from schema.users t " +
" where upper(t.user_id) like upper ('u227%')");
// xmlStr = qry.getXMLString(); works.
// return (qry.getXMLString()); works
// !work
domDoc = (XMLDocument)qry.getXMLDOM();
qry.close();
return(0);
}

Hi Pam,
It is using Element as the method return that is causing the problem. As you've seen this means that the Data Control has no concrete schema types to associate with the fields so it fails.
I have a couple of possible workarounds.
1. Is it a requirement to write your SQL query in the method? Perhaps they are to be dynamic?
If not, have you considered using the database to do the query and publishing that as the service. This would work around the problem. You can use JDeveloper to do all of this if you 'wrap' the query in a PL/SQL package in the database. Then use the 'Web Service from PL/SQL Package' wizard to generate the web service including wrapper Java classes for the package and DB connection/mgmt classes.
Or you can publish the actual Query as a service - using the command line (unfortunately you can't use JDEV to do this)
2. You mentioned the XSD for the query - if you have that then you can use a custom serializer and map your XSD to the return type of your method - the org.w3c.dom.Element class:
a. if your web service is already generated - open properties (Web Services Editor)
b. go to Custom Mappings page
c. click Add
d. for Java Class type in org.w3c.dom.Element
e. for XML Qualified Name add your XSD
f. add your serializer class - here is one I made earlier!
package project3;
import java.util.Map;
import javax.xml.namespace.QName;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPException;
import oracle.webservices.SOAPUtil;
import oracle.webservices.databinding.SOAPElementSerializer;
import org.w3c.dom.Element;
public class DummyElementSerialiser implements SOAPElementSerializer
public void init(Map map)
public SOAPElement serialize(QName qName, Object object)
try
return SOAPUtil.toSOAPElement((Element) object);
catch (SOAPException ex)
return null;
if you're generating the service from scratch this same mapping page comes up as part of the wizard
Now you should be able to create your data control
rgds
Susan

Similar Messages

  • Web service: Cannot remove WSS security setting

    Hi,
    i have a problem about developing web service with jdeveloper 10.1.3.1
    The problem is that ---> once i have add the security to the web service
    (through the web service wizard .. i,e, right click the web service and
    select "Secure Web Service'), i CANNOT REMOVE the security setting using
    the web service wizard...
    call the web service always say missing wsse:Security SOAP header..
    do anybody have the solution?
    thank you...

    Hi,
    the issue is still there in 10.1.3.3, and it must be somewhere on JDeveloper or OC4J side. Moreover, it's not limited to removing security settings, as the situation (old settings remembered) is the same when editing security settings.
    lsp,
    before regenerating a web service and its xml files (editing security properties), make sure you have cleaned the project and then you can try deleting the oracle-webservices.xml file from your project directory, because JDeveloper does not seem to be willing to overwrite it during regeneration.
    If this does not help and you are using embedded OC4J, you can try the following steps before running the web service again:
    - delete the embedded-oc4j/application-deployments/current-workspace-app directory, because it contains an oracle-webservices.xml file which may be outdated,
    - empty the contents of embedded-oc4j/config/wsmgmt.xml, because it contains security settings for web services you have deployed so far, which also may be outdated,
    - restart JDeveloper :)
    Note that these are just guesses to solve the problem. Unfortunately doing all of these did not solve it for me.
    So if anybody has some more ideas, we'll be happy to hear them.
    Thanks,
    Patrik

  • Cannot deploy application local/WD_ExcelExport_NW04s

    Hi,
    i am able to build the project successfully, but cannot deploy the sample project WD_ExcelExport_NW04s.   Please see the below exception i got while deploying
    Result
    => deployment aborted : file:/D:/DOCUME1/NMAHAB1.HUS/LOCALS~1/Temp/temp54954WD_ExcelExport_NW04s.ear
    Aborted: development component 'WD_ExcelExport_NW04s'/'local'/'LOKAL'/'0.2007.11.22.20.27.50'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application local/WD_ExcelExport_NW04s.. Reason: Clusterwide exception: Failed to deploy application local/WD_ExcelExport_NW04s. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/WD_ExcelExport_NW04s. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    Thanks,
    Hussain

    HI Hussain
    1) Undeploy your project using SDM [RemoteGUI], or else ask your basis person to remove that particular project's .EAR file.
    2) If you have a clustered server ,follow this sequence
    a) Stop the Clustered Server
    b) Stop the Local Server
    c) Start the Local Server
    d) Start the Clustered Server
    3) Try to deploy your application once again
    Best Regards
    Chaitanya.A

  • Polycom CX 600 - Certificate web service cannot be found

    Hi All,
    I know, there are some same issues in the forum, bot those are not helpful for me. My problem is the same, via network cable (using just DHCP) the Polycom CX 600 Lync Phone are not able to sign in (however 1 month ago it was), returning the error message:
    'Certificate web service cannot be found.'
    I've double checked the DHCP options and all of them are OK! We are not using Windows DHCP, but the options are right, the 43 option containing the proper hexa value, the sub-options are also valid. From the DHCP log I can verify that the device got the
    options, but the phone still not able to sign in.
    From the browser I cannot open the device, by it's IP, just with FTP:\\'IP'. There I could find a .clg1 log file, but it not containing useful information for me. 
    This is the link of the log file: http://speedy.sh/XAgMT/system.clg1
    If I run the DHCPUtil.exe -emulateclient on my workstation, I got the following:
    Starting Discovery ...
    Result: Failure =  -2147014848
    Or... sometimes it has a result:
    Starting Discovery ...
    Sending Packet (Size: 288, Network Adapter: 57.56.69.138, Attempt Type: Broadcas
    t + Unicast)
    --Begin Packet--
    DHCP: INFORM                (xid=5C1E8177)
    DHCP: Op Code           (op)      = 1
    DHCP: Hardware Type     (htype)   = 6
    DHCP: Hops              (hops)    = 0
    DHCP: Transaction ID    (xid)     = 1545503095
    DHCP: Seconds           (secs)    = 0
    DHCP: Flags             (flags)   = 0000
    DHCP: Client IP Address (ciaddr)  = 57.56.69.138
    DHCP: Your IP Address   (yiaddr)  = 0.0.0.0
    DHCP: Server IP Address (siaddr)  = 0.0.0.0
    DHCP: Relay IP Address  (giaddr)  = 0.0.0.0
    DHCP: Client HW Address (chaddr)  = E0DB55DE###--End Packet--
    Received Packet
    Sender:57.20.120.85:67, Size:408
    --Begin Packet--
    DHCP: ACK                (xid=5C1E8177)
    DHCP: Op Code           (op)      = 1
    DHCP: Hardware Type     (htype)   = 6
    DHCP: Hops              (hops)    = 0
    DHCP: Transaction ID    (xid)     = 1545503095
    DHCP: Seconds           (secs)    = 0
    DHCP: Flags             (flags)   = 0000
    DHCP: Client IP Address (ciaddr)  = 57.56.69.138
    DHCP: Your IP Address   (yiaddr)  = 0.0.0.0
    DHCP: Server IP Address (siaddr)  = 0.0.0.0
    DHCP: Relay IP Address  (giaddr)  = 57.56.69.131
    DHCP: Client HW Address (chaddr)  = E0DB55DE8993
    DHCP: Server Host Name  (sname)   =
    DHCP: Boot File Name    (file)    =
    DHCP: Magic Cookie                = 99.130.83.99
    DHCP: Option Field
        DHCP: DHCP MESSAGE TYPE(  53) = (Length: 1) DHCP ACK
        DHCP: Server Identifier(  54) = (Length: 4) 57.20.120.85
        DHCP: Client Identifier(  61) = (Length: 0)  ()
        DHCP: SIP Server( 120)        = (Length: 18) enc:0 lync2013.dlh.de (00086C79
    6E633230313303646C6802646500)
        DHCP: Host Name(  12)         = (Length: 0)
        DHCP: Vendor Identifier(  60) = (Length: 0)
        DHCP: Param Req List(  55)    = (Length: 0) 0 0
        DHCP: Vendor Info(  43)       = (Length: 130) ☺♀MS-UC-Client☻♣https♥☼lync201
    3.dlh☻E6465040334343305252F4365727450726F762F4365727450726F766973696F6E696E67536
    572766963652E737663] (010C4D532D55432D436C69656E7402056874747073030F6C796E633230
    31332E646C6802453634363530343033333433343333303532353246343336353732373435303732
    36463736324634333635373237343530373236463736363937333639364636453639364536373533
    36353732373636393633363532453733373636335D)
        DHCP: End of this option field
    --End Packet--
    Received Packet
    Sender:57.20.120.85:67, Size:408
    --Begin Packet--
    DHCP: ACK                (xid=5C1E8177)
    DHCP: Op Code           (op)      = 1
    DHCP: Hardware Type     (htype)   = 6
    DHCP: Hops              (hops)    = 0
    DHCP: Transaction ID    (xid)     = 1545503095
    DHCP: Seconds           (secs)    = 0
    DHCP: Flags             (flags)   = 0000
    DHCP: Client IP Address (ciaddr)  = 57.56.69.138
    DHCP: Your IP Address   (yiaddr)  = 0.0.0.0
    DHCP: Server IP Address (siaddr)  = 0.0.0.0
    DHCP: Relay IP Address  (giaddr)  = 57.56.69.130
    DHCP: Client HW Address (chaddr)  = E0DB55DE8993
    DHCP: Server Host Name  (sname)   =
    DHCP: Boot File Name    (file)    =
    DHCP: Magic Cookie                = 99.130.83.99
    DHCP: Option Field
        DHCP: DHCP MESSAGE TYPE(  53) = (Length: 1) DHCP ACK
        DHCP: Server Identifier(  54) = (Length: 4) 57.20.120.85
        DHCP: Client Identifier(  61) = (Length: 0)  ()
        DHCP: SIP Server( 120)        = (Length: 18) enc:0 lync2013.dlh.de (00086C79
    6E633230313303646C6802646500)
        DHCP: Host Name(  12)         = (Length: 0)
        DHCP: Vendor Identifier(  60) = (Length: 0)
        DHCP: Param Req List(  55)    = (Length: 0) 0 0
        DHCP: Vendor Info(  43)       = (Length: 130) ☺♀MS-UC-Client☻♣https♥☼lync201
    3.dlh☻E6465040334343305252F4365727450726F762F4365727450726F766973696F6E696E67536
    572766963652E737663] (010C4D532D55432D436C69656E7402056874747073030F6C796E633230
    31332E646C6802453634363530343033333433343333303532353246343336353732373435303732
    36463736324634333635373237343530373236463736363937333639364636453639364536373533
    36353732373636393633363532453733373636335D)
        DHCP: End of this option field
    --End Packet--
    Received Packet
    Sender:57.20.120.100:67, Size:408
    --Begin Packet--
    DHCP: ACK                (xid=5C1E8177)
    DHCP: Op Code           (op)      = 1
    DHCP: Hardware Type     (htype)   = 6
    DHCP: Hops              (hops)    = 0
    DHCP: Transaction ID    (xid)     = 1545503095
    DHCP: Seconds           (secs)    = 0
    DHCP: Flags             (flags)   = 0000
    DHCP: Client IP Address (ciaddr)  = 57.56.69.138
    DHCP: Your IP Address   (yiaddr)  = 0.0.0.0
    DHCP: Server IP Address (siaddr)  = 0.0.0.0
    DHCP: Relay IP Address  (giaddr)  = 0.0.0.0
    DHCP: Client HW Address (chaddr)  = E0DB55DE8993
    DHCP: Server Host Name  (sname)   =
    DHCP: Boot File Name    (file)    =
    DHCP: Magic Cookie                = 99.130.83.99
    DHCP: Option Field
        DHCP: DHCP MESSAGE TYPE(  53) = (Length: 1) DHCP ACK
        DHCP: Server Identifier(  54) = (Length: 4) 57.20.120.100
        DHCP: Client Identifier(  61) = (Length: 0)  ()
        DHCP: SIP Server( 120)        = (Length: 18) enc:0 lync2013.dlh.de (00086C79
    6E633230313303646C6802646500)
        DHCP: Host Name(  12)         = (Length: 0)
        DHCP: Vendor Identifier(  60) = (Length: 0)
        DHCP: Param Req List(  55)    = (Length: 0) 0 0
        DHCP: Vendor Info(  43)       = (Length: 130) ☺♀MS-UC-Client☻♣https♥☼lync201
    3.dlh☻E6465040334343305252F4365727450726F762F4365727450726F766973696F6E696E67536
    572766963652E737663] (010C4D532D55432D436C69656E7402056874747073030F6C796E633230
    31332E646C6802453634363530343033333433343333303532353246343336353732373435303732
    36463736324634333635373237343530373236463736363937333639364636453639364536373533
    36353732373636393633363532453733373636335D)
        DHCP: End of this option field
    --End Packet--
    Received Packet
    Sender:57.20.120.100:67, Size:408
    --Begin Packet--
    DHCP: ACK                (xid=5C1E8177)
    DHCP: Op Code           (op)      = 1
    DHCP: Hardware Type     (htype)   = 6
    DHCP: Hops              (hops)    = 0
    DHCP: Transaction ID    (xid)     = 1545503095
    DHCP: Seconds           (secs)    = 0
    DHCP: Flags             (flags)   = 0000
    DHCP: Client IP Address (ciaddr)  = 57.56.69.138
    DHCP: Your IP Address   (yiaddr)  = 0.0.0.0
    DHCP: Server IP Address (siaddr)  = 0.0.0.0
    DHCP: Relay IP Address  (giaddr)  = 57.56.69.131
    DHCP: Client HW Address (chaddr)  = E0DB55DE8993
    DHCP: Server Host Name  (sname)   =
    DHCP: Boot File Name    (file)    =
    DHCP: Magic Cookie                = 99.130.83.99
    DHCP: Option Field
        DHCP: DHCP MESSAGE TYPE(  53) = (Length: 1) DHCP ACK
        DHCP: Server Identifier(  54) = (Length: 4) 57.20.120.100
        DHCP: Client Identifier(  61) = (Length: 0)  ()
        DHCP: SIP Server( 120)        = (Length: 18) enc:0 lync2013.dlh.de (00086C79
    6E633230313303646C6802646500)
        DHCP: Host Name(  12)         = (Length: 0)
        DHCP: Vendor Identifier(  60) = (Length: 0)
        DHCP: Param Req List(  55)    = (Length: 0) 0 0
        DHCP: Vendor Info(  43)       = (Length: 130) ☺♀MS-UC-Client☻♣https♥☼lync201
    3.dlh☻E6465040334343305252F4365727450726F762F4365727450726F766973696F6E696E67536
    572766963652E737663] (010C4D532D55432D436C69656E7402056874747073030F6C796E633230
    31332E646C6802453634363530343033333433343333303532353246343336353732373435303732
    36463736324634333635373237343530373236463736363937333639364636453639364536373533
    36353732373636393633363532453733373636335D)
        DHCP: End of this option field
    --End Packet--
    Received Packet
    Sender:57.20.120.100:67, Size:408
    --Begin Packet--
    DHCP: ACK                (xid=5C1E8177)
    DHCP: Op Code           (op)      = 1
    DHCP: Hardware Type     (htype)   = 6
    DHCP: Hops              (hops)    = 0
    DHCP: Transaction ID    (xid)     = 1545503095
    DHCP: Seconds           (secs)    = 0
    DHCP: Flags             (flags)   = 0000
    DHCP: Client IP Address (ciaddr)  = 57.56.69.138
    DHCP: Your IP Address   (yiaddr)  = 0.0.0.0
    DHCP: Server IP Address (siaddr)  = 0.0.0.0
    DHCP: Relay IP Address  (giaddr)  = 57.56.69.130
    DHCP: Client HW Address (chaddr)  = E0DB55DE8993
    DHCP: Server Host Name  (sname)   =
    DHCP: Boot File Name    (file)    =
    DHCP: Magic Cookie                = 99.130.83.99
    DHCP: Option Field
        DHCP: DHCP MESSAGE TYPE(  53) = (Length: 1) DHCP ACK
        DHCP: Server Identifier(  54) = (Length: 4) 57.20.120.100
        DHCP: Client Identifier(  61) = (Length: 0)  ()
        DHCP: SIP Server( 120)        = (Length: 18) enc:0 lync2013.dlh.de (00086C79
    6E633230313303646C6802646500)
        DHCP: Host Name(  12)         = (Length: 0)
        DHCP: Vendor Identifier(  60) = (Length: 0)
        DHCP: Param Req List(  55)    = (Length: 0) 0 0
        DHCP: Vendor Info(  43)       = (Length: 130) ☺♀MS-UC-Client☻♣https♥☼lync201
    3.dlh☻E6465040334343305252F4365727450726F762F4365727450726F766973696F6E696E67536
    572766963652E737663] (010C4D532D55432D436C69656E7402056874747073030F6C796E633230
    31332E646C6802453634363530343033333433343333303532353246343336353732373435303732
    36463736324634333635373237343530373236463736363937333639364636453639364536373533
    36353732373636393633363532453733373636335D)
        DHCP: End of this option field
    --End Packet--
    Result: Failure =  1
    I don't know what is that Failure = 1
    Has anybody an idea???
    Many thanks,
    Tamás

    Hi,
    The DHCP options are good.
    Finally, I was able to run the test-csphonebootsrap cmdlet, and I got the following error:
    Result        : Failure
    Latency       : 00:00:01.2179659
    Error Message : No response received for getting root certificate chain.
                    Inner Exception:The remote server returned an unexpected respon
                    se: (417) Expectation Failed.
                    Inner Exception:The remote server returned an error: (417) Expe
                    ctation Failed.
    Diagnosis     :
                    Inner Diagnosis:Mime-Version : 1.0
                    X-Squid-Error : ERR_INVALID_REQ 0
                    Vary : Accept-Language
                    Content-Language : en
                    X-Cache : MISS from proxy.lsy.bud.dlh.de
                    X-Cache-Lookup : NONE from proxy.lsy.bud.dlh.de:3128
                    Connection : close
                    Content-Length : 3944
                    Content-Type : text/html
                    Date : Thu, 09 Jan 2014 13:24:47 GMT
                    Server : squid/3.1.10
                    Via : 1.0 proxy.lsy.bud.dlh.de (squid/3.1.10)
    VERBOSE: Workflow
    'Microsoft.Rtc.SyntheticTransactions.Workflows.STPhoneBootstrapWorkflow'
    started.
    Workflow
    'Microsoft.Rtc.SyntheticTransactions.Workflows.STPhoneBootstrapWorkflow'
    completed in '0.0001508' seconds.
    Target server Fqdn or web service Url not provided. Will have to do DHCP
    Registrar Discovery.
    An exception 'No response received for getting root certificate chain.'
    occurred during Workflow
    Microsoft.Rtc.SyntheticTransactions.Workflows.STPhoneBootstrapWorkflow
    execution.
    Exception Call Stack:    at
    Microsoft.Rtc.Admin.Authentication.WebServicesHelper.GetRootCertChains()
       at
    Microsoft.Rtc.SyntheticTransactions.Activities.GetRootCertChainsActivity.Intern
    alExecute(ActivityExecutionContext executionContext)
       at
    Microsoft.Rtc.SyntheticTransactions.Activities.SyntheticTransactionsActivity.Ex
    ecute(ActivityExecutionContext executionContext)
       at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity,
    ActivityExecutionContext executionContext)
       at
    System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRunti
    me workflowCoreRuntime)
       at System.Workflow.Runtime.Scheduler.Run()
    Server stack trace:
       at
    System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(
    HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory,
     WebException responseException, ChannelBinding channelBinding)
       at
    System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChanne
    lRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.Request(Message message,
    TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean
    oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan
    timeout)
       at
    System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessa
    ge methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage
    message)
    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
    reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
    msgData, Int32 type)
       at RootCertChainService.GetRootCertChains(GetRootCertChainsRequest request)
       at Microsoft.Rtc.Admin.Authentication.WebServicesHelper.GetRootCertChains()
    'DHCPDiscover' activity started.
    Starting DHCP registrar discovery...
    Constructing a DHCP packet.
    Adding DHCP option PARAMETER_REQUEST_LIST.
    Successfully added DHCP option.
    Adding DHCP option VENDOR_CLASS_IDENTIFIER.
    Successfully added DHCP option.
    Successfully constructed DHCP packet.
    Trying to open an udp connection.
    Remote IP : 255.255.255.255.
    Local IP : 10.150.7.33.
    \tCreating a new UDP client.
    Udp connection successfully created.
    Sending packet.
    Remote IP : 255.255.255.255.
    Remote Port : 67.
    Packet sent successfully.
    DHCP discovery message send. Waiting for DHCP servers to respond.
    Data received successfully.
    Remote IP : 57.20.120.85.
    Remote Port : 67.
    Response received for the DHCP Discovery message.
    Constructing a DHCP packet from received raw data.
    Extracting DHCP Options.
    Successfully constructed DHCP packet.
    Return value for DHCP option : SIP_SERVER.
    Found registrar Fqdn : lyncpool.dlh.de.
    Searching for DHCP sub option : VENDOR_SPECIFIC_INFORMATION.1.
    Return value for DHCP option : VENDOR_SPECIFIC_INFORMATION.
    Found DHCP sub option : VENDOR_SPECIFIC_INFORMATION.1 - MS-UC-Client.
    Successfully extracted sub option value.
    Searching for DHCP sub option : VENDOR_SPECIFIC_INFORMATION.2.
    Return value for DHCP option : VENDOR_SPECIFIC_INFORMATION.
    Found DHCP sub option : VENDOR_SPECIFIC_INFORMATION.2 - https.
    Successfully extracted sub option value.
    Searching for DHCP sub option : VENDOR_SPECIFIC_INFORMATION.3.
    Return value for DHCP option : VENDOR_SPECIFIC_INFORMATION.
    Found DHCP sub option : VENDOR_SPECIFIC_INFORMATION.3 - lyncpool.dlh.de.
    Successfully extracted sub option value.
    Searching for DHCP sub option : VENDOR_SPECIFIC_INFORMATION.4.
    Return value for DHCP option : VENDOR_SPECIFIC_INFORMATION.
    Found DHCP sub option : VENDOR_SPECIFIC_INFORMATION.4 - 443.
    Successfully extracted sub option value.
    Searching for DHCP sub option : VENDOR_SPECIFIC_INFORMATION.5.
    Return value for DHCP option : VENDOR_SPECIFIC_INFORMATION.
    Found DHCP sub option : VENDOR_SPECIFIC_INFORMATION.5 -
    /CertProv/CertProvisioningService.svc.
    Successfully extracted sub option value.
    Found web service Url :
    https://lyncpool.dlh.de:443/CertProv/CertProvisioningService.svc.
    Disconnecting.
    DHCP registrar discovery activity completed successfully.
    'DHCPDiscover' activity completed in '1.2179659' seconds.
    'GetRootCertChains' activity started.
    Trying to download a certificate chain from web service.
    Web Service Url : http://lyncpool.dlh.de/CertProv/CertProvisioningService.svc
    Could not download certificate chain from web service.
    CHECK:
     - Web service Url is valid and the web services are functional.
    'UnRegister' activity started.
    'UnRegister' activity completed in '3.78E-05' seconds.
    VERBOSE: Workflow Instance ID 'a9313cfa-b82c-4bd2-9df6-81acca1bcbbc' completed.
    VERBOSE: Workflow run-time (sec): 1.5083016.
    It looks like the telephone are not able to download the root CA, but the webservice is available and reachable via port 80 and 443 too.... So, what is the reason? Why the Polycom CX600 is not able to download the root CA??

  • (266758030) Can WebLogic Workshop Web Services be deployed on a different Application Server?

    (266758030) Q(asked by Lalit Sudan): Can WebLogic Workshop Web Services be deployed
    on a different Application Server?
    A(by Adam Fitzgerald): .jws files are not yet an accepted standard so you can expect
    that the WebLogic Workshop Web Services cannot be ported to other Application Servers,
    however, it is a general goal to expand the functionality of the Workshop tool for
    other App Servers.

    Just so you'll know Oracle9iAS also includes apache as the HTTP server.
    As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.

  • Startup class is run before web services are deployed

    Hello, I need to run a class at server start-up which uses web services deployed on the same Weblogic server.
    I'm using Weblogic startup class, which fires after the server is up and all modules have been deployed.
    However, it is fired before web services are deployed, so this solution doesn't work.
    Is there a way to have a class that is run by Weblogic after web services are deployed?
    Right now I'm using a timer that polls the server till the services are up and running, but I hope there's a cleaner way.
    thanx,
    Mike

    Thanx for response.
    Looking at the logs, the following came to light.
    1. My app does get deployed last, but the ServletContextListener in my app is fired after all modules "...transitioned from STATE_PREPARED to STATE_ADMIN".
    It took a few more seconds for all modules to transition "from STATE_ADMIN to STATE_ACTIVE".
    2. After all modules transitioned to STATE_ACTIVE, the log shows this:
    <Channel "DefaultSecure" is now listening on xxx.xxx.xxx.xxx:443 for protocols iiops, t3s, ldaps, https.>
    I assume that only at this point are web services accessible. The error that I get when trying to invoke a web service from ServletContextListener is:
    java.net.ConnectException: Tried all: 1 addresses, but could not connect over HTTPS to server: RLOCVGVY91 port: 443
         at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:289)
    So I dunno... If my ServletContextListener waits for 10 seconds, everything works.
    Mike

  • URGENT **** Need help for JAX-RPC Web Service Proxy deploy to OC4J 10.1.3.5

    Hi everyone!
    I’m really new to web services.
    I’m getting a *500 internal server error* while deploying my JAX-RPC web service Proxy to an Oracle AS, in an OC4J, v. 10.1.3.5.0.
    Running my client from my development environment (*jdeveloper 10g, 10.1.3.5.0*) everything functions correctly: from jdeveloper I can contact and use the web service defined by the following endpoint: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    I created a "try_ws_client.jsp" file that runs correctly from my local development environment jdeveloper (that uses an embedded oc4j, v. 10.1.3.5.0) but fails when run from the test server (Oracle AS, in an OC4J, v. 10.1.3.5.0), getting, as I mentioned a 500 internal server error, a white page in IE but with FF the message says: The’s an error in the servlet .....
    Here's how I created the ws proxy and how I’m using it to consume the ws I mentioned.
    1. I used the jdeveloper “Create Web Service Proxy” wizard (File > New > Business Tier > Web Services > Web Service Prox) and in the WSDL document URL I put: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    2. The operation ended without adding nothing to the web.xml file and creating the proxy files. One of them is: FederaMLOLSoapClient.java that have the WS exposed methods (es: public boolean createUser(String) ) + a “main” method with the example how to use this client to consume the WS.
    public static void main(String[] args) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    3. In FederaMLOLSoapClient.java I’ve create the method "tyIt":
    public String tryIt(String username) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    if(myPort.createUser(String username)) {
    return “O.K”;
    } else {
    return “K.O”;
    } catch (Exception ex) {
    // logs error
    4. I created my try_ws_client.jsp file that creates FederaMLOLSoapClient object and calls the tryIt method, printing the “OK” or “KO” message.
    <%@ page import="it.reggiocity.provincia.biblioreggiane.*"%>
    <%
    String message = "";
    FederaMLOLSoapClient obj= new FederaMLOLSoapClient( );
    message = obj.tryIt(“AAAAAA70R10H226H”);
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>prova</title>
    </head>
    <body><%=message%></body>
    </html>
    The situation is:
    My try_ws_client.jsp runs correctly from my jdeveloper and the user is created while creating app.ear and deploying it to my Oracle AS/OC4J as mentioned above, I get a 500 Internal Server Error.
    Any idea to find a solution to this problem?
    Please help.
    Take care.
    John M.

    Hi,
    you want to build the Web Service, or you want to consume the Service as a client? If the latter, Web client (ADF?) or Java client?
    Frank

  • Consuming a web service from a Servlet on OC4J

    In my web application, I have a servlet, and that servlet calls a webservice running on an external server. To connect to the web service, I am using a java proxy class that was generated using the WebServicesAssembler tool (the webservice runs on an OC4J server). When I use the proxy in a stand alone application, it works fine. Unfortunately, when I try to use it in my servlet, I get a SOAP Exception. This is some information I get from my log.
    2007-07-23 11:36:39,861 [HttpRequestHandler-19288329] INFO
    Message: Unsupported response content type "text/html", must be: "text/xml". Response was:
    <HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /webservices/StationService/ not found on this server</BODY></HTML>
    2007-07-23 11:36:39,861 [HttpRequestHandler-19288329] INFO [com.georss.GeoRss:190] - Cause: null
    2007-07-23 11:36:39,861 [HttpRequestHandler-19288329] INFO
    Localized Message: Unsupported response content type "text/html", must be: "text/xml". Response was:
    <HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /webservices/StationService/ not found on this server</BODY></HTML>
    2007-07-23 11:36:39,861 [HttpRequestHandler-19288329] INFO
    Fault Code: SOAP-ENV:Protocol
    So from the error message in the Localized message, it seems like the application is receiving a 404 error. In the proxy stub code, I know the url for the service is correct, so I dont know why it is not working. Any idea?
    Thanks.
    Message was edited by:
    Mynameisbt

    I am sure that the URL is right because I can use the same client class for the web service in a stand alone application. I did not change the endpoint URL in the client at all. The client was generated by OC4J's web services assembler tool. Also, the same URL will work in a browser.
    Does OC4J require some sort of deployment descriptor to connect to an external web service? My web application only uses a .war file and it is packaged in an .ear file. It is a J2EE 1.3 application.
    this is what I have in my web.xml file:
    <web-app>
    <servlet>
    <servlet-name>myServlet</servlet-name>
    <display-name>myServlet</display-name>
    <description>description</description>
    <servlet-class>com.controller</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>myServlet</servlet-name>
    <url-pattern>/servlet/myServlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    In my web.xml descriptor, do I need to add anything related to the web service i am trying to access?
    Message was edited by:
    Mynameisbt

  • Embedded OC4J  - Web Service works... not OC4J!

    I have a very interesting issue here.. when I run my EJB 3.0 - Web service in Jdeveloper using the embedded OC4J, I am able to successfully test my services.
    But, When I deploy the Web service to an OC4J server, I get the folowing error when I try to run one the exact same service:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://model.sofia.dryden.nasa.com/"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Internal Server Error (Caught exception while handling request: javax.ejb.EJBException: java.lang.StackOverflowError; nested exception is:
         java.lang.StackOverflowError; nested exception is: oracle.oc4j.rmi.OracleRemoteException: java.lang.StackOverflowError; nested exception is:
         java.lang.StackOverflowError)</faultstring></env:Fault></env:Body></env:Envelope>
    Note: This has been happening since I am working on migrating from an mySQL database to Oracle.....
    It may be something in the table structure on the oracle db.... due to the conversion process... but what is puzzling is how the embedded OC4J is very forgiving!
    -Thanks for any input...

    The version of OC4J: 10.1.3.1.0
    I am thinking it has to do with the UNIQUEID.... because the same code works fine on mySQL and SQL2005 db's....
    Perhaps it is something in the Oracle table.... (tdc)
    from the log:
    More of the stack:
    <MODULE_ID>ejb.transaction</MODULE_ID>
    <THREAD_ID>14</THREAD_ID>
    <USER_ID>mritchso</USER_ID>
    <SUPPL_ATTRS>
    <ATTR NAME="J2EE_MODULE.name">oraTdcWebservice</ATTR>
    <ATTR NAME="J2EE_APP.name">oraTdcWebservice</ATTR>
    <ATTR NAME="WEBSERVICE_PORT.name">oracleTdcSessionEJB</ATTR>
    <ATTR NAME="WEBSERVICE.name">oracleTdcSessionEJBBeanService</ATTR>
    </SUPPL_ATTRS>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>IPAddress:62846:1221082977722:2164</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>[oracleTdcSessionEJB:public java.lang.String com.nasa.dryden.sofia.model.oracleTdcSessionEJBBean.getTdc(int)] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: java.lang.StackOverflowError; nested exception is:
         java.lang.StackOverflowError</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[oracle.oc4j.rmi.OracleRemoteException: java.lang.StackOverflowError
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at oracleTdcSessionEJB_RemoteProxy_2ce1bo.getTdc(Unknown Source)
         at com.nasa.dryden.sofia.model.runtime.OracleTdcSessionEJBBeanSoapHttp_Tie.invoke_getTdc(OracleTdcSessionEJBBeanSoapHttp_Tie.java:411)
         at com.nasa.dryden.sofia.model.runtime.OracleTdcSessionEJBBeanSoapHttp_Tie.processingHook(OracleTdcSessionEJBBeanSoapHttp_Tie.java:1265)
         at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:297)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:413)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:277)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:134)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    java.lang.StackOverflowError
         at com.nasa.dryden.sofia.model.oracleTdcSessionEJBBean.<init>(oracleTdcSessionEJBBean.java:20)
         at com.nasa.dryden.sofia.model.oracleTdcSessionEJBBean.getTdc(oracleTdcSessionEJBBean.java:83)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Web service proxy deployment

    Hi ,
    I am using JDI environment to develop a webdynpro dc that
    use web service model . after the proxy generation and the local tests I want to deploy the webdynpro application to development environment and test environment , but the proxy client still points to the web service that runs on the local test environment.
    I know there is a way to configure logical port on the NWDS , but I think this solution does'nt suit the JDI environment. Another simple solution is to put an alias server name in the url of the wsdl file and maintain this alias on the hosts file (or dns ) of the diffrent servers , but it requires to os configuration.
    do you have any idea for a solution ?

    Hi Daniel,
    Check out this link. See if they are of any help to you.
    http://help.sap.com/saphelp_nw04s/helpdata/en/b5/ce88b82d7bfe4799ba7e175558d0ba/content.htm
    Regards
    Sidharth
    Message was edited by: Sidharth Deshpande

  • Hello REST web service example deployment fails when using EJB

    I was able to successfully deploy the hello REST web service example. But when I attempted to lookup an EJB via the following code I get an error message.
    try {
    ic = new InitialContext();
    DirectoryBean db = (DirectoryBean)ic.lookup("java:comp/env/ejb/DirectoryBean");
    } catch (NamingException ex) {
    ex.printStackTrace();
    Here is the error message in the NetBeans console window:
    Deploying application in domain failed; Error loading deployment descriptors for module [hello] -- com.sun.enterprise.deployment.annotation.context.WebBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat com.sun.enterprise.deployment.annotation.AnnotationInfo@15f1fa0
    D:\java\Sun\swdp-tutorial-1.0\examples\rest\hello\nbproject\build-impl.xml:450: Deployment error:

    I think the problem may be that the SimpleServlet example uses an apt feature to generate a web.xml which will replace any web.xml you already have in the project (and lose any references etc you might have in it). To work around this problem first copy the necessary lines from the web.xml in the generates .war file - they should look something like this:
    <servlet>
    <servlet-name>RESTBeans Application</servlet-name>
    <servlet-class>com.sun.ws.rest.impl.container.servlet.ServletAdaptor</servlet-class>
    <init-param>
    <param-name>resourcebean</param-name>
    <param-value>com.sun.ws.rest.samples.servlet.resources.RESTBeansResources</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>RESTBeans Application</servlet-name>
    <url-pattern>/restbean/*</url-pattern>
    </servlet-mapping>
    Add these to your project web.xml, replacing any lines that look similar (the web.xml in the sample project has these lines that you'll need to replace:
    <servlet>
    <servlet-name>ServletAdaptor</servlet-name>
    <servlet-class>com.sun.ws.rest.impl.servlet.ServletAdaptor</servlet-class>
    <init-param>
    <param-name>resources</param-name>
    <param-value>test1</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <!-- this is a comment -->
    <servlet-name>ServletAdaptor</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    Now you need to turn off automatic web.xml generation by adding <option key="noservlet"/> to the apt task option in build.xml (look for the apt child of the -pre-compile task in build.xml).
    Clean and rebuild and make sure that the web.xml in the generated .war file now matches the project web.xml file.
    Marc.

  • Web Service proxy deployment and reuse

    Jdev. 11.1.1.4
    Hi,
    In my ADF application I have created a web service proxy with Jdev wizard.
    I have created a method in order to test it and it works ok.
    Now, I need to reuse this proxy (the package) in other java applications also in Jdev but working with struts (I don't thnk this is important but....)
    I have created a deployment profile only for the ws proxy package and generated a jar file.
    This jar file has been declared in the second application and try to execute the same method that worked in the first application.
    Just in the first sentence:
    UtilGestionDocumental utilGestionGrupos = new UtilGestionDocumental();
    we are having an "unauthorized error". No time to declare any username nor password that are send in later instructions.
    The first part of the call to the WS that we are using is this:
    UtilGestionDocumental utilGestionGrupos = new UtilGestionDocumental(); <- Here it throws the error
    SecurityPoliciesFeature securityFeatures =
    new SecurityPoliciesFeature(new String[] {
    "oracle/wss_username_token_client_policy" });
    UtilGestionDocumentalPortType entidadDocPortType =
    utilGestionGrupos.getUtilGestionDocumentalSOAP12Port(/*securityFeatures*/);
    ((BindingProvider)entidadDocPortType).getRequestContext().put(BindingProvider.USERNAME_PROPERTY,"Username");
    ((BindingProvider)entidadDocPortType).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,"Password");
    ((BindingProvider)entidadDocPortType).getRequestContext().put(BindingProvider."EndPoint....." );
    I think I'm not using the correct system to create a jar for the WS, am I ?
    someone can help me with this ?

    Does any expert can help in deploying a web service proxy as a jar file ?

  • Invoking a web service - cannot resolve method parameter

    I am getting a failure trying to invoking a method called sl_Access on a web service.
    (Same code worked in Workshop 7.1, but fails in Workshop 8.0. The WDSL has not
    changed.) WLW is not able to revolve a method parameter called piCustNo. The service
    call works in WLW 7.1, but not 8.0.
    Any insight on how to fix this problem?
    The service call
    private AnonType_sl_AccessResponse response = null;
    nlastid = response.piLastId;
    the service definition from wsdlControl.jcx ----
    * @jc:protocol form-post="false" form-get="false" http-soap="true"
    public AnonType_sl_AccessResponse sl_Access (int piCustno);
    console error output -----
    Submitted at Wednesday, October 8, 2003 2:15:22 PM EDT
    Exception in sl_Access
    com.bea.control.ServiceControlException:
    SOAP-ENV:Client
    An error was detected in the Web Service request. (10894)
    Cannot resolve method sl_Access parameter ns:piCustno (10933)e91a6247e9b693c3:-1b6d127:f811fed2db:-8000#17
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:846)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
    at $Proxy11.sl_Access(Unknown Source)
    at com.ovid.service.AccessService.getRepl(AccessService.java:93)
    at com.ovid.service.AccessService.processBatch(AccessService.java:71)
    at Controller.runAccess(Controller.jws:399)

    see:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.workshop&item=1730
    Joe Smith wrote:
    >
    I am getting a failure trying to invoking a method called sl_Access on a web service.
    (Same code worked in Workshop 7.1, but fails in Workshop 8.0. The WDSL has not
    changed.) WLW is not able to revolve a method parameter called piCustNo. The service
    call works in WLW 7.1, but not 8.0.
    Any insight on how to fix this problem?
    The service call
    private AnonType_sl_AccessResponse response = null;
    nlastid = response.piLastId;
    the service definition from wsdlControl.jcx ----
    * @jc:protocol form-post="false" form-get="false" http-soap="true"
    public AnonType_sl_AccessResponse sl_Access (int piCustno);
    console error output -----
    Submitted at Wednesday, October 8, 2003 2:15:22 PM EDT
    Exception in sl_Access
    com.bea.control.ServiceControlException:
    SOAP-ENV:Client
    An error was detected in the Web Service request. (10894)
    Cannot resolve method sl_Access parameter ns:piCustno (10933)e91a6247e9b693c3:-1b6d127:f811fed2db:-8000#17
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:846)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
    at $Proxy11.sl_Access(Unknown Source)
    at com.ovid.service.AccessService.getRepl(AccessService.java:93)
    at com.ovid.service.AccessService.processBatch(AccessService.java:71)
    at Controller.runAccess(Controller.jws:399)

  • JAX-WS web service - "Cannot find dispatch method"

    I'm getting the same error response every time I send a request to my JAX-WS web service:
    <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
       <faultcode>ns2:Client</faultcode>
       <faultstring>Cannot find dispatch method for {http://www.w3.org/2003/05/soap-envelope}Envelope</faultstring>
    </ns2:Fault>I've tried using JAX-WS RI 2.1.7 and 2.2 on my Tomcat server, but both return the same error response. It will return the WSDL just fine (when "?wsdl" is appended to the endpoint URL). I used "wsimport" to generate the necessary Java classes from my WSDL--it used JAX-WS RI 2.1.6 (the one included with the JDK I guess) to generate the Java source files.
    Other people online have had similar problems, but never with the SOAP element "{http://www.w3.org/2003/05/soap-envelope}Envelope", always with things specific to their WSDLs like "{}reqParams" or "{http://www.telekom.at/eai/WSToCramerCSIRead}CSIRead". I set a debug breakpoint at the start of my SIB method and it doesn't even get that far.
    Any ideas? Thanks for your help.
    WSDL:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- This wsdl file is for an XDS-I.b Imaging Document Source Actor
         It can be used 'as is' to support Imaging Document Source Retrieve Imaging Document Set Transaction
         using Synchronous Web Services. 
         -->
    <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:ihe="urn:ihe:iti:xds-b:2007" xmlns:iherad="urn:ihe:rad:xdsi-b:2009" xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
      targetNamespace="urn:ihe:rad:xdsi-b:2009" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
      xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" name="ImagingDocumentSource">
      <documentation>IHE XDS-I.b Imaging Document Source</documentation>
      <types>
        <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:ihe:iti:xds-b:2007"
          xmlns:ihe="urn:ihe:iti:xds-b:2007">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/IHE/XDS.b_DocumentRepository.xsd"/>
        </xsd:schema>
        <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:ihe:rad:xdsi-b:2009"
          xmlns:ihe="urn:ihe:iti:xds-b:2007"
          xmlns:iherad="urn:ihe:rad:xdsi-b:2009">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/IHE/XDSI.b_ImagingDocumentSource.xsd"/>
        </xsd:schema>
        <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
          xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/ebRS/rs.xsd"/>
        </xsd:schema>
        <!-- While no elements are directly used from these schema in the WSDL,
          they need to be present here in order for
          code generating toolkits to work properly -->
        <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0"
          xmlns:lcm="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/ebRS/lcm.xsd"/>
        </xsd:schema>
       <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"
          xmlns:lcm="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/ebRS/rim.xsd"/>
        </xsd:schema>
      </types>
      <message name="RetrieveImagingDocumentSetRequest_Message">
        <documentation>Retrieve Imaging Document Set</documentation>
        <part name="body" element="iherad:RetrieveImagingDocumentSetRequest"/>
      </message>
      <message name="RetrieveDocumentSetResponse_Message">
        <documentation>Retrieve Document Set Response</documentation>
        <part name="body" element="ihe:RetrieveDocumentSetResponse"/>
      </message>
      <portType name="ImagingDocumentSource_PortType">
        <operation name="ImagingDocumentSource_RetrieveImagingDocumentSet">
          <input message="iherad:RetrieveImagingDocumentSetRequest_Message"
            wsaw:Action="urn:ihe:rad:xdsi-b:2009:RetrieveImagingDocumentSet"/>
          <output message="iherad:RetrieveDocumentSetResponse_Message"
            wsaw:Action="urn:ihe:iti:2007:RetrieveDocumentSetResponse"/>
        </operation>
      </portType>
      <binding name="ImagingDocumentSource_Binding" type="iherad:ImagingDocumentSource_PortType">
        <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="ImagingDocumentSource_RetrieveImagingDocumentSet">
          <soap12:operation soapAction="urn:ihe:rad:xdsi-b:2009:RetrieveImagingDocumentSet"/>
          <input>
            <soap12:body use="literal"/>
          </input>
          <output>
            <soap12:body use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="ImagingDocumentSource_Service">
        <port name="ImagingDocumentSource_Port_Soap12" binding="iherad:ImagingDocumentSource_Binding">
          <soap12:address location="http://localhost:8080/webservice-test/ridsService"/>
        </port>
      </service>
    </definitions>
    Request:
    <soap:Envelope
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    xmlns:urn="urn:ihe:rad:xdsi-b:2009"
    xmlns:urn1="urn:ihe:iti:xds-b:2007"
    xmlns:a="http://www.w3.org/2005/08/addressing">
       <soap:Header>
         <a:Action soap:mustUnderstand="1">urn:ihe:rad:2009:RetrieveImagingDocumentSet</a:Action>
         <a:MessageID>urn:uuid:0fbfdced-6c01-4d09-a110-2201afedaa02</a:MessageID>
         <a:ReplyTo soap:mustUnderstand="1">
              <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
         </a:ReplyTo>
         <a:To>http://localhost:8080/webservice-test/ridsServer</a:To>
       </soap:Header>
       <soap:Body>
          <urn:RetrieveImagingDocumentSetRequest>
             <!--1 or more repetitions:-->
             <urn:StudyRequest studyInstanceUID="test1">
                <!--1 or more repetitions:-->
                <urn:SeriesRequest seriesInstanceUID="test2">
                   <!--1 or more repetitions:-->
                   <urn1:DocumentRequest>
                      <!--Optional:-->
                      <urn1:HomeCommunityId>test3</urn1:HomeCommunityId>
                      <urn1:RepositoryUniqueId>test4</urn1:RepositoryUniqueId>
                      <urn1:DocumentUniqueId>test5</urn1:DocumentUniqueId>
                   </urn1:DocumentRequest>
                </urn:SeriesRequest>
             </urn:StudyRequest>
             <urn:TransferSyntaxUIDList>
                <!--1 or more repetitions:-->
                <urn:TransferSyntaxUID>?</urn:TransferSyntaxUID>
             </urn:TransferSyntaxUIDList>
          </urn:RetrieveImagingDocumentSetRequest>
       </soap:Body>
    </soap:Envelope>
    Response (HTTP 500):
    <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
       <faultcode>ns2:Client</faultcode>
       <faultstring>Cannot find dispatch method for {http://www.w3.org/2003/05/soap-envelope}Envelope</faultstring>
    </ns2:Fault>

    I posted here to benefit anybody who is looking for a solution.
    The solution is to use WebServiceContext to get ServletContext, then use ServletContext to get parameters defined in web.xml.
    @Resource private WebServiceContext m_wsCxt;
    Then in method
    SOAPMessageContext soapCxt = (SOAPMessageContext) m_wsCxt.getMessageContext();
    ServletContext servletCxt = (ServletContext) soapCxt.get(javax.xml.ws.handler.MessageContext.SERVLET_CONTEXT);
    }

  • Web Service client deployment in JBoss 4.0.4 GA

    I need to write a web service client which would be deployed in a WAR file JBoss 4.0.4 GA container.
    The web service is written using JSR 181 and deployed in jbossws-1.0.2.GA .
    I would like to know which would be the best web service stack to use to write the client in the above mentioned scenario?
    TIA...

    Enable TCP/IP protocol. Select Microsoft SQL Server 2005>Configuration Tools>SQL Server Configuration Manager. In the SQL Server Configuration Manager select the node SQL Server 2005 Network Configuration>Protocols for SQLEXPRESS. Right-click on the TCP/IP node and select Enable. Restart the SQL Server (SQLEXPRESS) service. Right-click on the SQL Server (SQLEXPRESS) service in Services and select Restart.

Maybe you are looking for

  • Best practice on sqlite for games?

    Hi Everyone, I'm new to building games/apps, so I apologize if this question is redundant... I am developing a couple games for Android/iOS, and was initially using a regular (un-encrypted) sqlite database. I need to populate the database with a lot

  • My client asks ... can we generate a PDF not via Word...?

    Using: RH HTML 7.0.3. Hi all, A client has invested time into developing a good CSS style sheet and RoboHelp template for creating a nice looking CHM HTML Help. My client wants to find a way of creating a nice looking PDF document without investing m

  • Vanishing sent messages in Apple Mail 4.3

    I'm using Mac OS 10.6.4 with Apple Mail 4.3 and I've experienced a bug recently. I noticed that some of my messages, either new ones from scratch or replies to received messages, simply vanished. If the message was a reply, I can't find it back by cl

  • Ipad lock.. no passcode..

    my ipad i locked since my IOS7 upgrade. I tried to restore it as explained at apple's support center but still it wont work..

  • Routines for determine the customer tax classification in VF02

    Hi i have to find out how the customer tax classification values is coming in VF02.customer tax classification  value should be '0'.but in my case it is coming '1'. i have to find out ,how the calculations has to be done and where should i modify the