WEBService WSDL downloading....

I've been slowly building up my web serivce and Flex UI. Over
time i noted that sometimes it takes a while for the WebService
object to finish loading. My UI blocks until the webservice has
finished loading, since everything the user intends to do will call
the WebService.
My current problem is that the WebService object downloads
the WSDL each time it connects to the newly started service.
Subsequent connects to the webservice are faster, but i can see
(through Fiddler) requests going to download the WSDL and it's
parts. I assume the subsequent connects are faster because the WSDL
is cached due to the browser file caching configuration.
So in the end the first time my user connects to the
webservice (after a fresh start of the webservice), it will take a
little while to download and process the WSDL. Then after that it
will be faster. We'd like to avoid long waits (not "long", talking
seconds here) for the user, we want the UI to be fast.
What i don't understand is that i've coded everything in my
Flex App to communicate with the webservice, so why does the
WebService object require itself to download a WSDL that i've
already build the web app for? It seems redundant to me, because
i've already tested that all my webservice calls will work with the
webservice in question.
Is there a way to avoid this? Maybe take the WSDL that i
build my web app for and include it with the application and have
the user load it locally; thus, avoiding the download of the WSDL.
Any help here would be very appreciated.

bumpy

Similar Messages

  • Error in BI Publisher webservice wsdl

    Hello All,
    I am using BI Publisher Enterprise 10.1.3.3.0 Standalone.
    I am trying to access the Webservice wsdl through the link
    http://servername:port/xmlpserver/services/ReportService?wsdl
    But i get the following error
    AXIS error
    Sorry, something seems to have gone wrong... here are the details:
    Fault - ; nested exception is:
         oracle.xml.parser.v2.XMLDOMException: invalid namespace for prefix xmlns
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: oracle.xml.parser.v2.XMLDOMException: invalid namespace for prefix xmlns
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:INDL223BC
    Any pointers on this please ?
    Thanks in advance
    Sulakshana

    Hi,I find the same eror for you.I want to know if you are installing using the Advanced installation type,please make the Oracle Application Server Installation
    Writable:If you are installing using the Advanced installation type, make the user or user group permissions ;writable for the user installing Oracle Business Intelligence, for all Oracle Application Server ;installation directories, subdirectories, and files.Use one of the following procedures, depending on your deployment.

  • Problem when invoke the  Webservice WSDL

    Hi ,
    Use case :
    I have two applications (Webservices) A and B.They have their own WSDL urls.
    From A ---> request format at A ---->Transform that into B request format----->forward that(request) to B request --- > get B response -----> tranfrom that into A response format ----> A response
    First part of usecase:
    I need to send the request from A to B.But both A and B has different request and response schemas(they will have similar kind of fileds but their naming convention will be different.That is why transformation is required in jdeveloper)
    I have developed a composite which has one BPEL process as component.
    I am placing the A webservice as "exposed Service" swimlane and B webservice in 'external reference'.BPEL process is in component swimlane.
    I deployed that Composite which has above BPEL Process(Takes input from one wsdl url and transforms that request format to (another) webservice request format as explained above) which tries to invoke(send request to) the another webservice Wsdl.
    When I test that composite (That WSDL url),I am getting service invokation exception.
    Please see the below exception:
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(Unknown Source) at com.sun.el.MethodExpressionImpl.invoke(Unknown Source) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:765) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:305) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:176) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:260) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:992) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:729) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:569) ... 79 more Caused by: javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:837) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:256) ... 82 more Caused by: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:231) at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:75) at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64) at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134) at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90) at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:273) at oracle.j2ee.ws.common.async.RequestorImpl.invoke(RequestorImpl.java:94) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:794) ... 85 more Caused by: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.processHttpResponseCode(HttpSOAPConnection.java:633) at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:501) at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PrivilegedPost.run(HttpSOAPConnection.java:1261) at java.security.AccessController.doPrivileged(Native Method) at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:229) ... 92 more
    I am getting "Webservice invokation failed" message and above exception.
    I am using some proxy server to access internet in my company. It is telling(If u see above exception u will be able to see) the below info in some part of exception.
    javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at
    Is there any problem with authentication to that wsdl url?
    I think u can understand my problem by looking at above clearly explained content.
    Hope u guys will help me out in this issue?
    Thanks in advance.
    Hope I will receive response as soon as possible as it is very critical at this point.
    Thanks

    Hi,
    Some part is requiring authentication, either the proxy or the web service provider. First thing is to determine which of them.
    Are you able to call B via SOAP-UI? Are you passing authentication in SOAP-UI? If not the problem is in you proxy server.
    Check 401 error here:
    http://www.checkupdown.com/status/E401.html
    Cheers,
    Vlad
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question. If you think this answer is helpful, please consider giving points.

  • Error creating Webservice Client in JAVA for ABAP Webservice(WSDL file)

    Hi all,
    I have created a webservice from a funtion module in the backend.
    Using soamanger I downloaded the wsdl file using "Open WSDL document for selected binding" link.
    I tested this web service in backend and it is working fine.
    Now I am trying to generate JAVA cilent for this webservice using Eclipse and Axis,but getting the following error
    IWAB0399E Error in generating Java from WSDL:  WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy):
    faultCode=INVALID_WSDL: Encountered unexpected element '{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy'.:
        WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL: Encountered unexpected element
    '{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy'.:
        at com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Unknown Source)
    Please let me know,wat needs to be done for this error to get resolved
    Thanks
    Santhosh

    Hi,
    I am also getting the same error while generating the client class from IBM Rational Application Developer IDE.
    Here is the error I get.
    WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL: Encountered unexpected element 'Policy'.:
         [java] at com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown Source)
         [java] at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(Unknown Source)
         [java] at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
         [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
         [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
         [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
         [java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
         [java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
         [java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
         [java] at java.lang.Thread.run(Thread.java:571)
    Did you find out the cause of this issue?
    Thanks & Regards,
    Vijay

  • Error at creating Client Proxy of external webservice (WSDL)

    Hi Experts,
    I try to create a Client Proxy Object out of an external webservice. Here is the WSDL URL:
    [http://www.webservicex.net/CurrencyConvertor.asmx?wsdl]
    I try to create it with this URL and then I get the error message
    Not implemented
    Exception of class CX_SIDL_INTERNAL_ERROR
    I found two other threads with a similar problem:
    cunsuming external webservice in ABAP
    Problem while consuming external webservice
    But there is no solution that worked for me. In the first thread it is mentioned, that the code between
    <wsdl:binding name="XXXXHttpGet" type="tns:XXXHttpGet">
    and it's closing brackets should be removed in a local file. I tried that and was able to create a client proxy object out of this local wsdl-file. But then I called the webservice with the folling coding for testing:
    report  z_currency_converter.
    data: convert type ref to zzzco_currency_convertor_soap.
    try.
        create object convert
      exporting
        logical_port_name  = 'Z_LP'
      catch cx_ai_system_fault .
    endtry.
       data: output type zzzconversion_rate_soap_out  .
       data: input type zzzconversion_rate_soap_in .
       input-from_currency = 'EUR'.
       input-to_currency = 'USD'.
    try.
    call method convert->conversion_rate
      exporting
        input  = input
      importing
        output = output
    catch cx_ai_system_fault .
    catch cx_ai_application_fault .
    endtry.
    write output-conversion_rate_result.
    The same code worked fine in another system. In this "older" system could also create a client proxy, I think because it has a newer Support Pack version.
    SAP says the following:
    The problem is that this WSDL uses two bindings different from SOAP
    binding which is not in conformance with Basic Profile 1.1 -
    http://www.ws-i.org/Profiles/BasicProfile-1.1.html#WSDLBINDINGS .
    I looked in the document, but I do not know where the problem in the WSDL file exactly is. What have I to change? Or can somebody give me the URL of a free webservice, that you used for creating a client proxy with a new support pack standing? In the "old" system there is not yet the SOAMANAGER but in the one where it doesn't work.
    I hope you have an idea.
    Thanks a lot in advance!
    Best Regards,
    Ingmar

    I think it is the problem of version.U need to ask SAP to release some patch levels to correct it.
    Regards
    Snehasish

  • How  to get soap request in webservices (WSDL in java)

    hi ,,
    i did one helloworld app using soap protocol. In that , one soap client invokes the webservices(old java class with WSDL ).Now i want to get the soap document in the web service for to process the soap envelope and parsing and generating the o/p and append to the response then create the soap document for response. plz let me know how to do?
    Thanks in advance.

    Let me see whether I understand. Are you attempting to achieve something like this:
    test.cfc
    <cfcomponent output="no">
    <cffunction name="testFunction" returntype="any" access="remote">
    <cfargument name="soapInput">
    <cfset var inputXML = arguments.soapInput>
    <cfset var soapBodyText="">
    <cfset var noBodyTextError="">
    <cftry>
        <cfset soapBodyText = xmlSearch(inputXML,"//soapenv:Body/text()")[1].xmlValue>
        <cfsavecontent variable="noBodyTextError"><?xml version="1.0" encoding="utf-8"?><soapenv:Envelope     xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.lang.Exception: Body not found.</faultstring></cfsavecontent>
        <cfif trim(soapBodyText) is "">
        <cfthrow>
        </cfif>
        <cfreturn inputXML>
    <cfcatch type="any">
    <cfreturn noBodyTextError>
    </cfcatch>
    </cftry>
    </cffunction>
    </cfcomponent>
    tester.cfm
    <cfxml variable="mydata">
            <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wor="https://www.worldmilesafrica.com">
       <soapenv:Header/>
       <soapenv:Body>
       </soapenv:Body>
    </soapenv:Envelope>
    </cfxml>
    <cfinvoke webservice = "http://127.0.0.1:8500/workspace/wsTest/test.cfc?wsdl"
              method = "testFunction"
               returnVariable = "result">
           <cfinvokeargument name="soapInput" value="#trim(mydata)#" >
    </cfinvoke>
    <cfdump var="#result#">

  • Receive PDF from WebService and Download it

    Hello, 
    I'm trying to integrate Europass Webservice with the website that I'm currently developing.
    This WebService allows you to, through a XML or JSON file, obtain either a PDF or a Word CV.
    They Provide the information to communicate with their WS and a Sample XML (here), but you can do your own, since you respect their schema.
    To ensure that the xml is okay use the remote upload service and see the resulting CV from your XML in their website.
    So my problem is that I can comunicate with the Web service and I also Get a OK Response (Great!), However when downloading the PDF it is all blank.
    What am I Missing here?Can you guys please guide me?
    To reproduce this, copy the code below and add the content of this http://goo.gl/XyM7Ma to the file in the xmlcontent path.
    Thanks in Advance,
    Nelssen
    CODE:
                //POST
                string xmlContent = File.ReadAllText("D:\\XML\\CV.xml");
                string URL = "https://europass.cedefop.europa.eu/rest/v1/document/to/pdf-cv";
                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
                request.Method = "POST";
                request.ContentType = "application/xml";
                using (Stream webStream = request.GetRequestStream())
                using (StreamWriter requestWriter = new StreamWriter(webStream, System.Text.Encoding.UTF8))
                    requestWriter.Write(xmlContent);
                //RESPONSE
                try
                    WebResponse webResponse = request.GetResponse();
                    using (Stream webStream = webResponse.GetResponseStream())
                        if (webStream != null)
                            using (StreamReader responseReader = new StreamReader(webStream))
                                string response = responseReader.ReadToEnd();
                                byte[] byteResponse = Encoding.UTF8.GetBytes (response);
                                Response.Clear();
                                Response.Buffer = true;
                                Response.ContentType = "application/pdf";
                                Response.AddHeader("content-disposition", "attachment;filename=test.pdf"); // Save file         
                                Response.AddHeader("Content-Length", byteResponse.Length.ToString());
                                Response.Charset = "";
                                Response.Cache.SetCacheability(HttpCacheability.NoCache);
                                Response.BinaryWrite(byteResponse);
                                Response.End();

    StreamReader is a textual reader.  If you are receiving a binary file from the URL then you should be using a
    BinaryReader.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • Regarding Webservice WSDL file

    Hello experts,
    Please help me by clarifying the below mentioned issue.
    I have cretaed a interactive form and placed one button on the form to submit the form data to the webservice.
    Now, in the properties of the button(Execute Type) i got the new dataconnection name by choosing the path EDIT-->New Data Connection
    and by uploading the WSDL file which was saved on my desktop.
    Now, it is working fine and iam able to do the bindings to webservice importing fields.
    But the problem is if i remove the WSDL file from the location where it was while creating new data connection in the form.
    The interfacing parameters of webservice in the DATA VIEW of the form are going OFF and if i reopen the form it is saying that "the file XXXXXXXXXXXXXXXX not exist".
    I tried with giving http URL in creating New data connection, but it is not accepting that URL and saying that "the URL : YYYYYYYYYYYYYYYYYYYYYYYY is invalid"
    Iam just following the standard procedure for taking the WSDL file or http UTL.
    Am i need to do any thing extra in taking WSDL file or URL?
    Regards,
    Ram

    No you are doing it right ....if you enter the url for the wsdl in a browser to you get the wsdl showing up? Are there any dialogs that pop up?
    Paul

  • Need to call webservice WSDL directly from Java code

    Hi All,
    I hope u all are doing great.
    I am new to web services and i have a requirement where i need to call the webservice directly from the java code, we dont need any middle layer(via proxy n all).
    Can you all please help me on this, we are using Jdeveloper 11g and we do have WSDLs
    we shld be able to use the wsdl in code and pass the request and get the request
    Any help will be appreciated
    Thanks

    @Puthanampatti     
    Thanks, but i already went through this link and seems this link also says we need to access webserivice through stub,dii etc.
    I want straught java code to access webservice without any tier in between
    Thanks

  • When change a WebService WSDL, Java WD crash

    Hi,
    I'm facing a problem that I can not fully comprehend. I'm going to explain it hoping for some answers...
    I have a WDynpro that call a custom SAP WebService. It works. perfectly.
    I change the SAP WebService adding a response field to the existing ones.
    I call the WDynpro again and it does not works anymore. I recevie a message like this
    "Probably runtime WSDL and design-time WSDL are inconsistent".
    Solution found is the foillowing. I change the webdynpro simply reimporting the WS model.
    Question is the following: If I add a field in the response of a WebService I need to reimport the model in ALL the Web Dynpros
    that use that service ? It sound very strange to me. That means that every change on a WebService correspond to a lot of changes to the DC's using that WebService.
    Please explain me....
    Thanks a lot.

    Hi,
    A WSDL represents the "Structure" of the Web Service that you are calling. That means, it defines the signature of the methods, which is the Input, output and exception parameters for each one of them.
    The WSDL is used for creation of the Web Service Model.
    Hence, whenever there is a change in the method signature of the Web Service, the WSDL is also modified, and thus the model.
    So it is true that, whenever you are modifying the request, response or the exception of the Web Service, you will need to re-import the Web Service Model. If this Web Service is used as model many DCs or Projects, then yes, it will be required to be re-imported.
    While technical  / programmatic changes in the method code does not require re-import.
    Regards,
    Alka.

  • Consume SAP webservices wsdl from Delphi 2007

    am trying to consume SAP webservices from Delphi 2007, but, i was some problems with this task. I used WSDL definition to make the Delphi interface and i´m working with THTTPRIO component to try consume SAP Webservices, but , occurs this error:
    Conexaosoasap
    Service Unavailable (503) - 'http://sapdev:50000/NovaCalculadora/ConfNovaCalc?style=document'
    OK  
    </b>
    What are the problem?
    Thanks.

    have you check the web service is activated?. Have a look to the SICF to see if the service is running.
    Eduardo.

  • WebService WSDL generation : NoSuchElementException

    Hello,
    I am using JDeveloper for a short time now. I am already created simple web services successfully.
    But when I try to import a project from a colleague, which use the same version as me, each time i try to modify the list of Web Method (using properties on the webservice) or trying to create a new web service on the same project, I got the following error :
    An alert box with
    Title : Generation Error
    Message : generator error : java.utils.NoSuchElementException
    After this the .java port file is created but nor the wsdl neither the web service is modified/created.
    Reproducible : always on this project.
    I have try to recreate the project from source but this I got the same error.
    Versions :
    jdev: 10.1.3.4.0.4270
    jvm : 1.5.0_06
    This is very annoying because my dev environment is broken, and I don't know why and what to do.
    Any help is really welcome.
    Thanks in advance and have a nice week-end.

    Hi again,
    After spending almost all my friday to try to fix this problem, I finally find the solution today morning.
    It was because my jdeveloper was installed in "Program Files\jdeveloper"
    But if I locate jdeveloper into C:\jdeveloper\ the problem is solved !
    I was lost for a space :)

  • Webservice WSDL

    Hi All,
    I have punlished a EJB webService on the j2ee engine.I want to get the WSDL generated for my webservice, how can I get it? when I gho to the WebService Navigator in the J2ee engine administration them I get the WSDL.zip for my webservice but it contains three files
    1.binding..wsdl
    2.main.wsdl
    3. config1_xyz.wsdl
    which is the wsdl which will be required to develop the client for my webservice?
    Best Regards
    Samir

    Hi Samir,
    This might not be the answer to your question, but nevertheless have a look at my article:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10">How to Create a Web Service using Enterprise JavaBeans</a>
    Bye
    Ankur
    Do reward points for helpful as well as solved answers!!

  • Coldfusion webservice wsdl tag order

    Hi
    I've created a web service that interogates a database and
    spits out an xml document. It has a number of input parameters and
    just one output value (the xml document).
    When I test this using coldfusion everything works fine.
    However when my client tries to invoke the web service it says that
    the return value doesn't exist.
    I've looked at the wsdl files generated by coldfusion and
    there does seem to be a difference in the order of the message tags
    produced that I think must be causing the error.
    In one webservice he can view the order is: request,
    exception, response
    In the one that he can't access properly the order is:
    response, exception, request.
    Does anyone else know how to resolve this issue? Or am I
    looking in the wrong place?

    To change the order is necesary use PI module

  • Location to find Exposed Webservice(wsdl)

    Hi all
                In my scenario ,  i am fetching the details from a bank website and storing it to a local table.
    i had taken  inputs from people  link:-
    xi Integration with website
    the problem is : where to find the <b>already existing exposed wsdl</b> , if avaliable...
    in net....etc
    Regards,
    Ashutosh

    Well mostly you get already hosted webservices online. the site usually hosts the wsdl too.
    For example have a look at this link - http://webservices.imacination.com/distance/index.jsp
    there you can find the wsdl link of a free webservice.

Maybe you are looking for

  • Different Versions of JWS Don't work with my jnlp - please help!!

    I had jdk1.5.0_14 installed with IIS serving a jnlp file that indicates the java version must be 1.5. I can download and run my application from a web page. I installed jdk1.6.0_02. JAVA_HOME and the path environment variables both point to jdk 1.5.

  • How can I send a pages doc. to someone with a PC(word) so that they can open it?

    How can I either change my Pages document into a Word document, Or send it to someone with a PC/Word so that they can open and read it? (My email is gmail).

  • My iPad screen is green

    My iPad screen is green, this is the second time in two months. Do I need to take it back. I've had it 9 months?

  • PSE 5 - Runtime Error - Solution PLEASE....

    I have run PSE 5 on a Windows XP Home Edition computer successfully for about 3 years, recently I split the Organiser in two with no problem. But now I cannot open the Organiser properly, its comes up "Not Responding" as `Topless Holidays.psa`, no id

  • Rosettanet PIPS download

    Hi All, I am working on interfacing between Rosettanet and XI and i need to do the mapings. I need to import these PIPS into XI to start mapping and would like to know where i can download them from. Below are the PIPS and version i need to download.