Web Service Help

Hi,
I am new to Web Service. I am trying to create my first web service in jdev enviorment. I have created a methos whicjh return a string value. I have generated the wsdl, web.xml from jdev. Also generated the client from jdev. Deployed the ws in my local env and when i try to invoke the ws i get the error :
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Error Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<STYLE id=L_default_1>A {
     FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #005a80; FONT-FAMILY: tahoma
A:hover {
     FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #0d3372; FONT-FAMILY: tahoma
TD {
     FONT-SIZE: 8pt; FONT-FAMILY: tahoma
TD.titleBorder {
     BORDER-RIGHT: #955319 1px solid; BORDER-TOP: #955319 1px solid; PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; VERTICAL-ALIGN: middle; BORDER-LEFT: #955319 0px solid; COLOR: #955319; BORDER-BOTTOM: #955319 1px solid; FONT-FAMILY: tahoma; HEIGHT: 35px; BACKGROUND-COLOR: #d2b87a; TEXT-ALIGN: left
TD.titleBorder_x {
     BORDER-RIGHT: #955319 0px solid; BORDER-TOP: #955319 1px solid; PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; VERTICAL-ALIGN: middle; BORDER-LEFT: #955319 1px solid; COLOR: #978c79; BORDER-BOTTOM: #955319 1px solid; FONT-FAMILY: tahoma; HEIGHT: 35px; BACKGROUND-COLOR: #d2b87a; TEXT-ALIGN: left
.TitleDescription {
     FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: tahoma
SPAN.explain {
     FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #934225
SPAN.TryThings {
     FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #934225
.TryList {
     MARGIN-TOP: 5px; FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: tahoma
.X {
     BORDER-RIGHT: #955319 1px solid; BORDER-TOP: #955319 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12pt; BORDER-LEFT: #955319 1px solid; COLOR: #7b3807; BORDER-BOTTOM: #955319 1px solid; FONT-FAMILY: verdana; BACKGROUND-COLOR: #d1c2b4
.adminList {
     MARGIN-TOP: 2px
</STYLE>
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY bgColor=#f3f3ed>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD class=titleborder_x width=30>
<TABLE height=25 cellSpacing=2 cellPadding=0 width=25 bgColor=black>
<TBODY>
<TR>
<TD class=x vAlign=center align=middle>X</TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD class=titleBorder id=L_default_2>Network Access Message:<SPAN class=TitleDescription> The page cannot be displayed</SPAN> </TD>
</TR>
</TBODY>
</TABLE>
<TABLE id=spacer>
<TBODY>
<TR>
<TD height=10></TD></TR></TBODY></TABLE>
<TABLE width=400>
<TBODY>
<TR>
<TD noWrap width=25></TD>
<TD width=400><SPAN class=explain><ID id=L_default_3><B>Explanation:</B></ID></SPAN><ID id=L_default_4> There is a problem with the page you are trying to reach and it cannot be displayed. </ID><BR><BR>
<B><SPAN class=tryThings><ID id=L_default_5><B>Try the following:</B></ID></SPAN></B>
<UL class=TryList>
<LI id=L_default_6><B>Refresh page:</B> Search for the page again by clicking the Refresh button. The timeout may have occurred due to Internet congestion.
<LI id=L_default_7><B>Check spelling:</B> Check that you typed the Web page address correctly. The address may have been mistyped.
<LI id=L_default_8><B>Access from a link:</B> If there is a link to the page you are looking for, try accessing the page from that link.
</UL>
<ID id=L_default_9>If you are still not able to view the requested page, try contacting your administrator or Helpdesk.</ID> <BR><BR>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE id=spacer><TBODY><TR><TD height=15></TD></TR></TBODY></TABLE>
<TABLE width=400>
<TBODY>
<TR>
<TD noWrap width=25></TD>
<TD width=400 id=L_default_10><B>Technical Information (for support personnel)</B>
<UL class=adminList>
<LI id=L_default_11>Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
<LI id=L_default_12>IP Address: 170.3.63.13
<LI id=L_default_13>Date: 4/28/2008 2:50:45 PM [GMT]
<LI id=L_default_14>Server: wpmoif05.nysdot.private
<LI id=L_default_15>Source: proxy
</UL>
</TD>
</TR>
</TBODY>
</TABLE>
</BODY>
</HTML>
]

Can anybody help on this ???

Similar Messages

  • EPMA web service help needed (9.3.1.5)

    I'm having issues when trying to utilize the backend EPMA web services. What I'm attempting to do is write a java app that can hit the EPMA services to authenticate, upload a flat file, then run a flat file import using a rule on the server.
    I'm currently able to authenticate and able to upload, but my call to the Imports.asmx web service to startFlatFileImportJob() is returning the following exception:
    Server was unable to process request. ---> Unable to find assembly 'data_access_layer, Version=9.3.2771.29149, Culture=neutral, PublicKeyToken=null'.
    (stack dump below).
    Are there any web service experts out there who can help me out with this? I'm writing Java in Eclipse on JRE 1.5.0_18. (code below)
    Sorry about the markup - couldn't figure out how to turn it off...
    Thanks,
    Jon
    ================== Stack Trace ====================
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
    faultSubcode:
    faultString: Server was unable to process request. ---> Unable to find assembly 'data_access_layer, Version=9.3.2771.29149, Culture=neutral, PublicKeyToken=null'.
    faultActor:
    faultNode:
    faultDetail:
         {}StackTrace:
    Server stack trace:
    at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
    at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
    at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
    at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
    at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryResponseMessage(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)
    at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
    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 Hyperion.DimensionServer.Interface.IImports.StartFlatFileImportJob(ApplicationLocator locator, Int32 importID, String fileReference, String[] additionalParams)
    at Hyperion.DimensionServer.WebServices.Imports.StartFlatFileImportJob(ApplicationLocator locator, Int32 importID, String fileReference, String[] additionalParams)
    Server was unable to process request. ---> Unable to find assembly 'data_access_layer, Version=9.3.2771.29149, Culture=neutral, PublicKeyToken=null'.
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at com.hyperion.bpma.ImportsSoapStub.startFlatFileImportJob(ImportsSoapStub.java:987)
         at com.hyperion.bpma.ImportsSoapProxy.startFlatFileImportJob(ImportsSoapProxy.java:74)
         at com.mycompany.hyperion.serviceTest.css.Authenticator.RunImport(Authenticator.java:92)
         at com.mycompany.hyperion.serviceTest.css.Authenticator.main(Authenticator.java:50)
    ================== Stack Trace ====================
    ==================== Code ======================
    package com.mycompany.hyperion.serviceTest.css;
    import java.rmi.RemoteException;
    import java.util.HashMap;
    import java.util.Map;
    import java.io.*;
    import com.hyperion.css.CSSAPIIF;
    import com.hyperion.css.CSSException;
    import com.hyperion.css.CSSSystem;
    import com.hyperion.css.common.CSSUserIF;
    import com.hyperion.bpma.LibrariesSoapProxy;
    import com.hyperion.bpma.SessionsSoapProxy;
    import com.hyperion.bpma.ImportsSoapProxy;
    import com.hyperion.bpma.UtilitiesSoapProxy;
    import com.hyperion.bpma.datatypes.ImportProfileInfo;
    import com.hyperion.bpma.datatypes.ImportType;
    import com.hyperion.bpma.datatypes.Library;
    import com.hyperion.bpma.datatypes.SessionInfo;
    import com.mycompany.hyperion.serviceTest.css.testApp;
    public class Authenticator{
         private static Map context;
         private static CSSSystem system;
         private static CSSAPIIF css;
         private static testApp myApp;
         private static CSSUserIF _user;
         private static String _userName;
         private static String _pw;
         private static ImportsSoapProxy _importService = new ImportsSoapProxy();
         private static SessionsSoapProxy _sessionService = new SessionsSoapProxy();
         private static UtilitiesSoapProxy _utilService = new UtilitiesSoapProxy();
         private static LibrariesSoapProxy _libService = new LibrariesSoapProxy();
         private static SessionInfo _session;
         private static Library _masterLibrary;
         private static com.hyperion.bpma.datatypes.ApplicationLocator _appLoc;
         private static int _importID = -1;
         private static String _filePath;
         private static String _importProfileName;
         public static void main(String[] args)
              if(ValidateArgs(args))
                   try{
                   Authenticate();
                   SetMasterLib();
                   LocateImportID();
                   RunImport();
                   catch(Exception e){
                        System.out.println(e.getLocalizedMessage());
              else
                   PrintUsage();
         private static void LocateImportID() throws RemoteException {
         ImportType[] temp = new ImportType[]{ImportType.FlatFile};
              ImportProfileInfo[] impInfo = _importService.enumImportProfileInfos(_session.getSessionID(), temp);
              for(int i=0;i<impInfo.length;i++){
                   if(impInfo.getName()==_importProfileName)
                        _importID = impInfo[i].getImportID();
         private static void SetMasterLib() throws RemoteException {
         _masterLibrary = _libService.getMasterLibrary(_session.getSessionID());
    private static void Authenticate() throws CSSException, RemoteException{
         system = CSSSystem.getInstance();
         css = system.getCSSAPI();
         myApp = new testApp();
              context = new HashMap();
              context.put(CSSAPIIF.LOGIN_NAME,_userName);
              context.put(CSSAPIIF.PASSWORD,_pw);
              css.initialize(myApp);
              _user = css.authenticate(context);
         _session = _sessionService.createSessionFromToken(_user.getToken());
    private static void RunImport() throws IOException{
         String fileHandle = UploadFile(_filePath);
         _appLoc = new com.hyperion.bpma.datatypes.ApplicationLocator();
         _appLoc.setSessionID(_session.getSessionID());
         _appLoc.setLibraryID(_masterLibrary.getLibraryID());
         _importService.startFlatFileImportJob(_appLoc, _importID, fileHandle, new String[]{});
    private static String UploadFile(String filePath) throws IOException
         String fileRef = _utilService.startFileUpload(_session.getSessionID(), filePath.substring(filePath.lastIndexOf("\\")+1));
         File f = new File(filePath);
         InputStream fis = new FileInputStream(f);
         byte[] buffer = new byte[(int) f.length()];
         int offset = 0;
    int numRead = 0;
    while (offset < buffer.length && (numRead=fis.read(buffer, offset, buffer.length-offset)) >= 0)
    offset += numRead;
    if (offset < buffer.length)
    throw new IOException("Could not completely read file " + f.getName());
    fis.close();
         _utilService.transfer(_session.getSessionID(), fileRef, 0, buffer.length, buffer);
         String fileHandle = _utilService.endTransfer(_session.getSessionID(), fileRef, false);
         return fileHandle;
    private static boolean ValidateArgs(String[] args){
    try{
    if(args.length % 2 != 0)
    throw new Exception("\nERROR: Invalid number of arguments exception...");
    for(int i=0;i<args.length-1;i=i+2){
    if(args[i].charAt(0) == '-'){
    switch(args[i].charAt(1)){
    case 'u':
    _userName = args[i+1];
    break;
    case 'p':
    _pw = args[i+1];
    break;
    case 'n':
         _importProfileName = args[i+1];
         break;
    case 'f':
         _filePath = args[i+1];
         break;
    default:
    throw new Exception("\nERROR: Bad flag/argument exception...");
    else
    throw new Exception("\nERROR: Bad argument format exception...");
    if((_userName == null) || (_pw == null) || (_importProfileName == null) || (_filePath == null))
    throw new Exception("\nERROR: Mandatory argument not passed...");
    catch(Exception e){
    System.out.println(e.getMessage());
    return false;
    return true;
    private static void PrintUsage(){
    System.out.println("\nUSAGE: java -jar test.jar [options]\n");
    System.out.println("Flag Option");
    System.out.println("===========================================================================================================================");
    System.out.println("-u (required) Username to authenticate as");
    System.out.println("-p (required) Password for authentication");
    System.out.println("Arguments must be passed in a \"-flag argument\" paired format (ie - not \"test.jar -up arg1 arg2...\")" + System.getProperty("line.separator") + System.getProperty("line.separator"));
    ==================== Code ======================

    Figured it out on my own

  • Web Service Help (Login Problem?)

    Hi,
         I'm trying to access the queryview webservice.  I have access to the WSDL, but when I perform the SOAP call I get an "Authority check failed" error.
    Any ideas where this error is coming from gurus or how to get past it.?  I'm using infopath to perform the soap call.
    Any help is greatly appreciated!
    The SOAP response indicates that an error occurred:
    Authority check failed

    i assume that you have desinged the form and saved it. when you open the saved form and run it you get this error.
    to avoid this you have to pass userid and password. for this you may have to add two fields in the form and add a custom code to the form tohandle the user id and password .
    check out the link in my weblog on this subject.
    /people/durairaj.athavanraja/blog/2004/09/07/microsoft-office-2003-infopath-sap-rfcwebservice
    Regards
    Raja
    close your previous threads
    Re: Web Service Login

  • Java web services help needed

    i am a student. working on a project. using java web services. using its api jax-rpc. i have compiled, deployed and run an example given in the tutorial of the web services tutorial\examples\jaxrpc\hello. now i want to bring the "hello" folder out of its original directory to e.g c:\project\. i have tried alot. i am not able to set the paths in the xml files provided. if any one of you can help me in this. my address is [email protected] . i am waiting for your reply.

    Where are you stuck up.
    Try the following steps
    create a directory structure
    c:\projects\jaxrpc
    copy your example
    <JWSDP>/docs/tutorial/examples/jaxrpc/hello to
    c:\projects\jaxrpc
    you may need to remove \build and \dist from the
    example if you have already tried the example
    copy your example
    <JWSDP>/docs/tutorial/examples/jaxrpc/common to
    c:\projects\jaxrpc
    Now the example will run correctly but only the war
    file is created in your original tutorial location.
    Now modify tut-root in
    c:\projects\jaxrpc\common\build.properties to
    tut-root=C:\\projects
    and modify the war-path in \hello\build.properties to
    point to
    war-path=${tut-root}/jaxrpc/${example}/dist/${deployabl
    -war}
    If anything fails first check the paths through
    <YOUR_path>\hello>ant debug
    If there is problem post details where it is failing.
    Ri am trying this method. i will tell you when it is done. thank you.

  • Ava Web Service, Help me please with this really simple project

    Hi,
    I', using Tomcat 557 jdk 1.5.0.0_01, axis 1.2, and i have to build simple web service. The project is a list of students (their name, surname) and it has to do as the following:
    -adding new student
    -deleting existing student
    -changing existing student (not a must)
    -dispaying all students list
    -searching student by id
    And it has to operate with simple text file (the database is too complicated in my situation)
    In C:\Java\jakarta-tomcat-5.5.7\webapps\axis i have student.jws file:
    import java.util.*;
    public class students{
                    private Map dane = new TreeMap();
         public students() {
              dane.put(new Integer(1), new Students("Adam", "Alt"));
              dane.put(new Integer(2), new Students("Claudia", "Shift"));
         dane.put(new Integer(4), new Students("Gregor", "Tab"));
              dane.put(new Integer(3), new Students("Robert", "Enter"));
         public void new(String name, String surname){
         public int[] list() {
              Set klucze = dane.keySet();
              int[] list = new int[klucze.size()];
              int i = 0;
              for (Iterator it = klucze.iterator(); it.hasNext(); ) {
                   list[i++] = ((Integer) it.next()).intValue();
              return list;
         public Student student (int nr) {
              Student u = (Student ) dane.get(new Integer(nr));
              return u;
    }And in C:\Java\jakarta-tomcat-5.5.7\webapps\axis\WEB-INF\classes i have the Student.java file:
    public class Student{
         private String name;
         private String surname;
         public Student() {
         public Student(String name, String surname) {
              this.name= name;
              this.surname= surname;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name= name;
         public String getSurname() {
              return surname;
         public void setSurname(String surname) {
              this.surname= surname;
    }And in IE http://localhost:8080/axis/students.jws?method=list
    Shows the list of students.
    The thing is, that it should work with at least simple text file (i don't even know the methods for connecting the database) and it should do the things, that i've already mentioned:
    -adding new student
    -deleting existing student
    -changing existing student (not a must)
    -dispaying all students list
    -searching student by id
    Could somebody add some code to this simple service? I know, that for you it's not any problem, you know java and it's a matter of life and death for me. Only if somebody help me, i will be able to finish current year of my studies. Normally i don't ask for such things, but now i don't have any choice - i have very important exam on monday, and i also have to present this project in this day.[/code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    And in IE http://localhost:8080/axis/students.jws?method=list
    Shows the list of students.
    The thing is, that it should work with at least simple text file (i don't even know the methods for connecting the database) and it should do the things, that i've already mentioned:
    -adding new student
    -deleting existing student
    -changing existing student (not a must)
    -dispaying all students list
    -searching student by id
    Could somebody add some code to this simple service? I know, that for you it's not any problem, you know java and it's a matter of life and death for me. Only if somebody help me, i will be able to finish current year of my studies. Normally i don't ask for such things, but now i don't have any choice - i have very important exam on monday, and i also have to present this project in this day.

  • Publish a JAX-RPC Java Web Service - HELP

    Hi,
    I try to generate a JAX-RPC web services as described in the tutorial : http://www.oracle.com/technology/tech/webservices/htdocs/series/jaxrpc1/index.html. but when generating the web services I have an exception : an unexpected error was encountered. Generation aborted. and when I click details I have the following message :
    java.io.FileNotFoundException: C:\jdev10g\jdev\mywork\WS2-TestOracle\Project1\src\__temp_assembler\public_html\WEB-INF\wsdl\MyWebService3.wsdl (Le chemin d'accès spécifié est introuvable)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:106)
         at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:66)
         at oracle.ide.net.FileURLFileSystemHelper.openInputStream(FileURLFileSystemHelper.java:481)
         at oracle.ide.net.URLFileSystemHelperDecorator.openInputStream(URLFileSystemHelperDecorator.java:242)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1028)
         at oracle.jdevimpl.webservices.generator.JAXRPCGenerator.populateWSDLWithEndpoint(JAXRPCGenerator.java:2153)
         at oracle.jdevimpl.webservices.generator.JAXRPCGenerator.generateServiceImpl(JAXRPCGenerator.java:896)
         at oracle.jdevimpl.webservices.generator.JAXRPCGenerator.generateService(JAXRPCGenerator.java:241)
         at oracle.jdeveloper.webservices.JAXRPCSvcModel.saveEdit(JAXRPCSvcModel.java:1613)
         at oracle.jdevimpl.webservices.wizard.WebServicePublishWizard.runWizard(WebServicePublishWizard.java:504)
         at oracle.jdevimpl.webservices.wizard.WebServicePublish.invoke(WebServicePublish.java:95)
         at oracle.ide.WizardManager.invokeWizard(WizardManager.java:484)
         at oracle.ide.WizardManager$1.run(WizardManager.java:538)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Can any one help,
    Thanks,

    The MyWebService1SEI.java interface does not get generated as indicated in the tutorial.
    If the Web service is generated with
    File>New>Business Tier>Java Web Service with the
    Autogenerate Service Endpoint Interface checkbox selected,
    the MyWebService1SEI.java interface does not get generated.
    The Autogenerate Service Endpoint Interface feature does not autogenerate java interface.

  • Web service help please - client invoking

    hi there
    can anyone help me on this? i create a client that is going to call a web service. now, i have erro exception saying that javax.xml.rpc.ServiceFactoryImpl can not be found. it happens when the execution reaches
    ServiceFactory factory = ServiceFactory.newInstance();
    how do i specify where the ServiceFactoryImpl class is? thank you.

    thanks for your reply. the following is my code to invoke a web service:
    //code................................................
    private void sendOrder(String orderid, String message)
    throws ClassNotFoundException, SQLException{
    // Setup the global JAX-RPC service factory
    try{
    System.setProperty( "javax.xml.rpc.ServiceFactory",
    "com.sun.xml.rpc.client.ServiceFactoryImpl");
    // create service factory
    ServiceFactory factory = ServiceFactory.newInstance();
    // define qnames
    String targetNamespace = "http://www.wowgao.com/exchange/server"
    + "wsdl/";
    QName serviceName = new QName(targetNamespace,
    "WGOrder.WGOrderBean");
    QName portName = new QName(targetNamespace,
    "WGOrderPort");
    QName operationName = new QName("urn:WGOrder", "orderSubmit");
    // create service
    Service service = factory.createService(serviceName);
    // create call
    Call call = service.createCall();
    // set port and operation name
    call.setPortTypeName(portName);
    call.setOperationName(operationName);
    // add parameters
    call.addParameter("BuyerID",
    new QName("http://www.w3.org/2001/XMLSchema", "string"),
    ParameterMode.IN);
    call.addParameter("SellerID",
    new QName("http://www.w3.org/2001/XMLSchema", "string"),
    ParameterMode.IN);
    call.addParameter("order",
    new QName("http://www.w3.org/2001/XMLSchema", "string"),
    ParameterMode.IN);
    call.setReturnType(new QName( "http://www.w3.org/2001/XMLSchema","long") );
    // set end point address
    call.setTargetEndpointAddress("http://www.xmethods.com:9090/soap");
    // invoke the remote web service
    String result = (String)call.invoke(operationName, new Object[]{"123","234",message});
    how do i set the com.sun.xml.rpc.client.ServiceFactor so that it know where to find the class? you said in the deployment descriptor. do you mean that whoever deploy a web app, it needs to speify this class in the deployment descriptor? i am not sure i understand what you said.

  • Web service help please - client invoking problem

    hi there
    can anyone help me on this? i create a client that is going to call a web service. now, i have erro exception saying that javax.xml.rpc.ServiceFactoryImpl can not be found. it happens when the execution reaches
    //code..................................
    ServiceFactory factory = ServiceFactory.newInstance();
    the following is my code to invoke a web service:
    //code................................................
    private void sendOrder(String orderid, String message)
    throws ClassNotFoundException, SQLException{
    // Setup the global JAX-RPC service factory
    try{
    System.setProperty( "javax.xml.rpc.ServiceFactory",
    "com.sun.xml.rpc.client.ServiceFactoryImpl");
    // create service factory
    ServiceFactory factory = ServiceFactory.newInstance();
    // define qnames
    String targetNamespace = "http://www.wowgao.com/exchange/server"
    + "wsdl/";
    QName serviceName = new QName(targetNamespace,
    "WGOrder.WGOrderBean");
    QName portName = new QName(targetNamespace,
    "WGOrderPort");
    QName operationName = new QName("urn:WGOrder", "orderSubmit");
    // create service
    Service service = factory.createService(serviceName);
    // create call
    Call call = service.createCall();
    // set port and operation name
    call.setPortTypeName(portName);
    call.setOperationName(operationName);
    // add parameters
    call.addParameter("BuyerID",
    new QName("http://www.w3.org/2001/XMLSchema", "string"),
    ParameterMode.IN);
    call.addParameter("SellerID",
    new QName("http://www.w3.org/2001/XMLSchema", "string"),
    ParameterMode.IN);
    call.addParameter("order",
    new QName("http://www.w3.org/2001/XMLSchema", "string"),
    ParameterMode.IN);
    call.setReturnType(new QName( "http://www.w3.org/2001/XMLSchema","long") );
    // set end point address
    call.setTargetEndpointAddress("http://www.xmethods.com:9090/soap");
    // invoke the remote web service
    String result = (String)call.invoke(operationName, new Object[]{"123","234",message});
    how do i set the com.sun.xml.rpc.client.ServiceFactor so that it know where to find the class?

    It sounds like a classpath problem. Try adding JWSDP_HOME/common/lib/jaxrpc-ri.jar to the client's classpath.
    Mike W.

  • Java client failing to connect to web service - help!!

    Hi
    I have created a Web service using ASP Web Matrix, which currently resides on my C drive in c:\Service6\HelloWorld.asmx.
    The service can be tested from a browser on my local machine by calling: http://localhost/Service6/HelloWorld.asmx. This works fine, i.e. it takes a string as a parameter and returns an amended string.
    When I try to access this from a Java client I created in Netbeans, however, I get the following error message:
    Server did not recognize the value of HTTP Header SOAPAction: sayHiya.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    Can anyone advise what I am doing wrong?
    [nb. I have spent over a week trying to sort this, so I have tried!!)
    The code for the client follows:-
    // The Axis package is used to generate and handle the SOAP call
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    // The rpc package is used to create the RPC call
    import javax.xml.namespace.QName;
    import javax.xml.rpc.NamespaceConstants;
    // The java.net package gives a URL class
    import java.net.URL;
    public class HelloWorldClient {
        /** Creates a new instance of HiyaClient */
        public static void main(String[] args)
    try
    String endpoint = "http://localhost/Service6/HelloWorld.asmx";
    Service service = new Service();
    Call call = (Call) service.createCall();
    // Configure the call
    call.setTargetEndpointAddress(new URL(endpoint));
    call.setSOAPActionURI("sayHello");
    call.setEncodingStyle(NamespaceConstants.NSURI_SOAP_ENCODING);
    call.setOperationName(new QName("urn:HelloWorld", "sayHello"));
    //call.setReturnType(XMLType.XSD_STRING);
    System.out.println("**Works to here**");
    //Invoke the call
    String result = (String) call.invoke(new Object[] { "Diane" });
    System.out.println("Sent 'Diane', got '" + result + "'");
    catch(Exception e)
    System.err.println(e.toString());

    Hiya, did try that - tried
    "http://localhost:8080/HelloWorld.asmx" and
    "http://localhost:8080/Service6/HelloWorld.asmx" and it still didn't work.
    Thanks anyway.
    Anyone else got any bright ideas?

  • Web Service help - ORA-30625: method dispatch on NULL SELF errors

    Hi All
    I could do with some assistance getting Web service's up & running on my application
    I've been following this guide but altering to fit in with our internal web services... the Internet police here at work have youtube blocked off so unable to test end to end using the OTN tutorial
    I've created a web service named PASSWORDGEN with the results stored in the collection PASSWORDRESULT
    On my page I've created the process that invokes the webservice PASSWORDGEN which is set to run on load - before header - seq #10
    then created the pl/sql anonymous block process which is set to run on load - before header - seq #20
    I've used the pl/sql example given in the tutorial but substituted their references to collections with my named collection .
    declare
    l_clob clob;
    l_xml xmltype;
    l_val clob;
    begin
    for c1 in (select clob001
    from apex_collections
    where collection_name = 'PASSWORDRESULT'
    ) loop
    l_clob := c1.clob001;
    exit;
    end loop;
    l_xml := xmltype.createxml(l_clob);
    l_val := dbms_xmlgen.convert(l_xml.extract('/methodResponse/params/param/value/string/text()').getclobval(),1);
    apex_collection.update_member_attribute(
    p_collection_name => 'PASSWORDRESULT',
    p_seq => '1',
    p_clob_number => '1',
    p_clob_value => l_val );
    end;
    if I try to run the page at this point I get the error ORA-30625: method dispatch on NULL SELF argument is disallowed
    what I think is happening, from what I've read up on, is that the collection is empty?
    so I'm trying to find out if the web service is not populating the collection correctly or have I made a mistake in the above syntax & trying to reference the collection incorrectly.
    Is there a way I can query the collection using TOAD?
    Edited by: Mr JD on 21-Jul-2010 08:38

    ok so found the collection but when I invoke the web service the collection record is not populated. I've tested the webservice & a result is returned but for some reason when I either run the test or run the page which invokes the web service as a page render process the collection is still not populated.....
    what I'm I missing here as the setup of the web service is pretty straight forward & testing the web service does produce a result within the test window

  • Creating a web service help needed....

    i am using netbeans 6.0 on xp and hav jdk 1.5 update 17 installed. tomcat 5.5 is also running. when i start developing a web service according to [this tutorial|http://wiki.netbeans.org/SOAPNetBeans6] when i try to create a new web service from wsdl it says "to create web service in this project the java source code level must be atleast jdk 1.5" and i can't continue from there. waht must i do...?

    again, u need to visit to netbeans or jws (java web service) forum within forums.sun.com url

  • Cannot use web service help please!!!

    Hi all, I need to use a webservice, while adding to my jsc project it shows correctly web service information, here is the result:
    Start file:///C:\mag_prova_ser2.wsdl 03/15/2007 11:33:22: Parsing WSDL. Please wait ..WSDL - file:/C:/mag_prova_ser2.wsdl 03/15/2007 11:33:22: Parsing WSDL results: Warning:Processing WS-I non conforming operation "ACCEPT" with RPC-Style and SOAP-encoded Warning:Processing WS-I non conforming operation "EXEC" with RPC-Style and SOAP-encoded Warning:Processing WS-I non conforming operation "LEGGI" with RPC-Style and SOAP-encoded Warning:Processing WS-I non conforming operation "QUIT" with RPC-Style and SOAP-encoded 03/15/2007 11:33:22: Finished parsing WSDL.
    when I press add button it returns an error:
    03/15/2007 11:38:41: Starting web service client creation... 03/15/2007 11:38:46: Error occurred while creating the proxy! 03/15/2007 11:38:46: warning: Processing WS-I non conforming operation "ACCEPT" with RPC-Style and SOAP-encoded 03/15/2007 11:38:46: warning: Processing WS-I non conforming operation "EXEC" with RPC-Style and SOAP-encoded 03/15/2007 11:38:46: warning: Processing WS-I non conforming operation "LEGGI" with RPC-Style and SOAP-encoded 03/15/2007 11:38:46: warning: Processing WS-I non conforming operation "QUIT" with RPC-Style and SOAP-encoded
    here is the wsdl file content:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="MAG_PROVA_SER2"
    targetNamespace="urn:uniface:applic:services:MAG_PROVA_SER2"
    xmlns:tns="urn:uniface:applic:services:MAG_PROVA_SER2"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <message name="ACCEPTRequest"/>
    <message name="EXECRequest"/>
    <message name="LEGGIRequest">
    <part name="M_ARTCOD" type="xsd:string"/>
    </message>
    <message name="QUITRequest"/>
    <message name="ACCEPTResponse">
    <part name="return" type="xsd:int"/>
    </message>
    <message name="EXECResponse">
    <part name="return" type="xsd:int"/>
    </message>
    <message name="LEGGIResponse">
    <part name="return" type="xsd:int"/>
    <part name="M_ARTDES" type="xsd:string"/>
    </message>
    <message name="QUITResponse">
    <part name="return" type="xsd:int"/>
    </message>
    <portType name="MAG_PROVA_SER2PortType">
    <operation name="ACCEPT">
    <input message="tns:ACCEPTRequest"/>
    <output message="tns:ACCEPTResponse"/>
    </operation>
    <operation name="EXEC">
    <input message="tns:EXECRequest"/>
    <output message="tns:EXECResponse"/>
    </operation>
    <operation name="LEGGI">
    <input message="tns:LEGGIRequest"/>
    <output message="tns:LEGGIResponse"/>
    </operation>
    <operation name="QUIT">
    <input message="tns:QUITRequest"/>
    <output message="tns:QUITResponse"/>
    </operation>
    </portType>
    <binding name="MAG_PROVA_SER2Binding" type="tns:MAG_PROVA_SER2PortType">
    <soap:binding style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="ACCEPT">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="encoded"
    namespace="urn:uniface:applic:services:MAG_PROVA_SER2"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output>
    <soap:body use="encoded"
    namespace="urn:uniface:applic:services:MAG_PROVA_SER2"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    <operation name="EXEC">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="encoded"
    namespace="urn:uniface:applic:services:MAG_PROVA_SER2"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output>
    <soap:body use="encoded"
    namespace="urn:uniface:applic:services:MAG_PROVA_SER2"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    <operation name="LEGGI">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="encoded"
    namespace="urn:uniface:applic:services:MAG_PROVA_SER2"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output>
    <soap:body use="encoded"
    namespace="urn:uniface:applic:services:MAG_PROVA_SER2"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    <operation name="QUIT">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="encoded"
    namespace="urn:uniface:applic:services:MAG_PROVA_SER2"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output>
    <soap:body use="encoded"
    namespace="urn:uniface:applic:services:MAG_PROVA_SER2"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    </binding>
    <service name="MAG_PROVA_SER2Service">
    <port name="MAG_PROVA_SER2" binding="tns:MAG_PROVA_SER2Binding">
    <soap:address location="@@UnifaceLocationPlaceholder@@/MAG_PROVA_SER2"/>
    </port>
    </service>
    </definitions>

    Solved.
    If you are using JBoss.4.2.3.GA - you will need to
    * Download the latest commons-discovery.jar file from : http://www.ibiblio.org/maven/commons-discovery/jars
    * Copy the JAR file to the following folder:
    o For a nonclustered environment:JBOSS_HOME\server\default\lib
    o For a clustered environment:JBOSS_HOME\server\all\lib
    * Re-start the Application server

  • Web Service help needed

    Hi all,
    I have worked on <b>SAP NetWeaver IDE</b> and <b>webdynpro</b> last year.
    Currently I am using <b>Eclipse IDE 3.2.0</b>  and <b>weblogic 8.1</b> server to create web services and
    I am creating a <b>bottom up web service</b> for a simple java bean containing only two method, by using the web service wizard.
    Everthing works fine till creating WSDL and starting server and after that clicking <b>Next</b> i get this error
    <b>IWAB0489E Error when deploying Web service to Axis runtime</b>
      axis-admin failed with  HTTP (404)Not Found.
    <b>Also</b> When i create a web service with Eclipse IDE Tomcat server then i donot get any such error
    Have anybody seen the same error or any idea how to resolve this issue.
    Thanks in Advance
    Rgds,
    Vilish

    Hi Singh,
    Just be carefull that there are some differences and exceptions in implementing web-services in webloc and tomcat. Refer to the following link for more details about the unsupported features in weblogic,
    http://e-docs.bea.com/wls/docs81/webserv/overview.html#1074641
    Actually this page is avery helpfull page if you want to create webservices in weblogic.
    Best regards,
    Guru.

  • SAP Cloud Application Studio Create Custom Web Service From Custom Business Object and Consume in External System

    Hi Experts,
    I have requirement to create custom business object and create Web Service for that and use in external system (SAP ECC / SAP CRM / Third Party).
    1) Is it possible to create custom object web service and used in external system ?
    2) When we create the Web service from custom business object what the necessary steps(action : Create , Read , Update) require?
    3) Sample Scenario :
    My Custom Business Object
    businessobject Custom_Integration {
      element EP_VAL1 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element EP_VAL2 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element IP_RES : LANGUAGEINDEPENDENT_MEDIUM_Text;
    I have created the Web Service using this custom business object.
    3) How i can use this web service in external system? what are the prerequisite steps in external system to consume this service in it?
    Please anyone have idea about this how to do this and how to achieve this using SDK and custom business object.
    Many Thanks
    Mithun

    Hello Mithun,
    Does this section in the documentation help you:
    SAP Cloud Applications Studio Help -> Developers Desktop -> Web Services
    The entry "Task -> Create a Web Service" describes how to create a Web Service on your own BO
    The entry "Task -> Test a Web Service" helps you how you can use it in a foreign tool / application.
    HTH,
       Horst

  • Need help in using web service of UCM in C#

    I am trying to use the "Search" web service of UCM in C#.
    The code below is what I did,
    ucm_server.Search search = new ucm_server.Search();
    search.Credentials = new NetworkCredential("sysadmin", "idc");
    QuickSearchResult result = search.QuickSearch("xKeywords like `lvl`", null);
    "xKeywords" is a custom metadata field and it works well in content server. "lvl" is what I want to search.
    And this is the error message:
    Unable to retrieve search results. Parsing error at character 13 in query: "xKeywords like `lvl`"
    Here is what I tried in the "queryText" parameter, but I got the same error message
    [*]xKeywords like 'lvl'
    [*]xKeywords <substring> `lvl`
    [*]xKeywords <substring> 'lvl'
    [*]xKeywords like &quot;%lvl%&quot;
    I got the error whatever I define for extraProps.
    I don't know what the "queryText" parameter should be in C#. Could someone help me with this? Thanks a lot.
    I knew the reason. xKeywords is a custom metadata field and it works with a default metadata field like "dDocName".
    But I still do not know how to make it to work with a custom field:(
    Edited by: [email protected] on Jun 24, 2010 7:49 PM

    Its a UCM setting... go to "Administration > System Audit Information" and enable socket tracing. Then click the "view server output" button to see what raw data is coming to the UCM from your .NET application. You may need to turn on "verbose" tracing as well. Do this one a test box, because it will generate a TON of output...

Maybe you are looking for