Velocity / XML response

Hi everyone, I'd be grateful if someone could help me out here. I use apache velocity to generate an xml request to send to a gateway which processes the request and sends an xml response. At the moment, the response (xmlString) is outputted to the browser as a string (see code below).
I want to separate out the elements in the response and display them in a more readable format on the browser eg.
Name = "xyz"
Address = "xyz"
Here is a snippet of what I have. What is the quickest way to extract the individual elements from the xml response and display them?
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
DiskFileItemFactory factory = new DiskFileItemFactory();
factory.setSizeThreshold(4096);
factory.setRepository(new File( FOLDERUPLOAD ));
PrintWriter writer = response.getWriter();
ServletFileUpload upload = new ServletFileUpload(factory);
upload.setSizeMax(60000000);
String xmlResult = executeCheck( upload, request);
manageResponse( writer, xmlResult);
} catch (FileUploadException e) {
e.printStackTrace();
private void manageResponse(PrintWriter writer, String xmlResult) {
writer.println(xmlResult);
writer.flush();
private String executeCheck( ServletFileUpload upload, HttpServletRequest request ) throws FileUploadException, IOException {
List items = upload.parseRequest(request);
Iterator iter = items.iterator();
while( iter.hasNext() ) {
System.out.println(items.toString());
FileItem item = (FileItem)iter.next();
if ( !item.isFormField() && item.getFieldName().equalsIgnoreCase("upload") ) {
InputStream in = item.getInputStream();
VasGatewayClient wsC = new VasGatewayClient( in, _URL );
return wsC.send();
return null;
}

Could you please stop crossposting?
Other thread here
http://forum.java.sun.com/thread.jspa?threadID=5198243

Similar Messages

  • XML response / Velocity template

    Hi everyone,
    I have a servlet which uses velocity engine to generate a soap request ,send it to a server and receive an xml response. How do I go about extracting the elements from the response and displaying them in a more readable format in a browser?
    Any help appreciated,
    Ruth

    you receive an XML reponse, so use an XML parser to prse and extarct the data you need.
    use sax for example to do this.
    here some examples:
    http://www.onjava.com/pub/a/onjava/2002/06/26/xml.html
    http://www.cafeconleche.org/books/xmljava/
    http://totheriver.com/learn/xml/xmltutorial.html
    hth

  • XML response / Velocity templates

    Hi everyone,
    I have a servlet which uses velocity engine to generate a soap request ,send it to a server and receive an xml response. How do I go about extracting the elements from the response and displaying them in a more readable format in a browser?
    Any help appreciated,
    Ruth

    you receive an XML reponse, so use an XML parser to prse and extarct the data you need.
    use sax for example to do this.
    here some examples:
    http://www.onjava.com/pub/a/onjava/2002/06/26/xml.html
    http://www.cafeconleche.org/books/xmljava/
    http://totheriver.com/learn/xml/xmltutorial.html
    hth

  • How do you query the Hotmail Calendar with a freebusy URL to get an XML response ?

    Hello,
    I've posted this on the Exchange Server Legacy thread, but they point me back here....
    Assuming that Outlook's (Hotmail's) Calendar service still supports XML FreeBusy requests, what am I doing wrong here ?
    I'm sending this GET request to obtain an XML return that I can then further process:
    GET / HTTP/1.1
    owa/public/?cmd=freebusy&start=2014-12-04T14: 00:00+01:00&end=2014-12-08T16:00:00+01:00&interval=30&u=SMTP:*** Email address is removed for privacy ***
    Translate: t User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)
    Content-Type: text/xml
    Host:
    www.calendar.live.com
    (Translate: t comes from http://www.infinitec.de/post/2004/12/31/Retrieving-a-users-availability-(freebusy-data).aspx)
    (User-Agent seems needed in order to get an XML response)
    It keeps giving me "400 - BAD REQUEST".
    What is the correct syntax for this  ?

    Hi,
    From your description, I would like to clarify the following things:
    1. If you use an Exchange account, you can use an OWA command to retrieve Free/busy information for a particular user.
    2. In your case, you use an Hotmail account. Actually, we have a dedicated support team regarding the Microsoft Outlook.com . I recommend you ask your question on our Microsoft Outlook.com forum which is staffed by more experts specializing in this kind
    of problems. Your understanding will be appreciated.
    For your convenience:
    http://answers.microsoft.com/en-us/outlook_com/forum/ocalendar?tab=Threads
    Hope this can be helpful to you.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • How to insert the partner link (xml)response to data base adapter in BPEL:

    Hi to every one,
    I have little bit knowledge in oracle SOA suit and having knowledge in java technologies,
    I am developing one central reporting server for this I have the following requirement.
    I need to call ‘N’ departmental servers (partner links) daily at specific time I need to insert all the transaction details (xml) response in central database (db adapter).
    I’m able to call the ‘N’ partner links but I’m facing the problem while inserting ‘N’ servers response into central db using db adapter.
    I written one common xsd file for request and response for N departmental server.
    Following are the SOAP request and response formats for your reference.
    <!-- =========== request formate ========= -->
    <Reportreq xsi:type="rep:Reportreq">
    <reqdate xsi:type="xsd:string">01-01-2010</reqdate>
    <reqtime xsi:type="xsd:string">1100</reqtime>
    </Reportreq>
    <!-- ======= Response Formate ================================ -->
    <multiRef id="id0" soapenc:root="0"
         soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xsi:type="ns2:ResponseBean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
         xmlns:ns2="ReportServer">
         <errorcode xsi:type="xsd:string"/>
         <errordesc xsi:type="xsd:string" xsi:nil="true"/>
    <reportres xsi:type="xsd:string">
    <![CDATA[<response:getTransData>
              <transdate>01-01-2010</transdate>
              <transtime>1100</transtime>
              <distcode>03</distcode>
    <transdata>
    <centre>GVLH</centre><deptcode>15</deptcode><servicecode>1</servicecode>
    <cashtrans>1</cashtrans><cashamt>165</cashamt><chqtrans>0</chqtrans>
    <chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt>
    <cardtrans>0</cardtrans><cardamt>0</cardamt>
    <epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
    </transdata>
    <transdata><centre>RBVP</centre><deptcode>15</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>3000</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans>
    <cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
    <userchrgs>0</userchrgs></transdata>
    <transdata><centre>RKBH</centre><deptcode>15</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>412</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt><epaytrans>0</epaytrans>
    <epayamt>0</epayamt><userchrgs>0</userchrgs></transdata>
    <transdata><centre>ARLV</centre><deptcode>101</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>125</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
    <ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt>
    <epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
    </transdata>
    <transdata><centre>NTRS</centre><deptcode>101</deptcode>
    <servicecode>1</servicecode><cashtrans>7</cashtrans><cashamt>2567</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
    <ddamt>0</ddamt><cardtrans>0</cardtrans>
    <cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
    <userchrgs>0</userchrgs></transdata>
    <!-- I will get “transdata” tag nearly 1000 to 10000 -->     
         </response:getTransData> ]]>
    </reportres>
    </multiRef>
    In java I hold the response XML string between the <response> tag and with the DOM parser I am able to insert the response data into central server.
    Now I want to do this in BPEL, I am getting the response from N partner links but I am facing the problem while inserting the response data into central database.
    Let me know if you have any idea or small example to achieve my requirement.
    Note: All partner services were implemented in bottom up approach.
    Have a good day,
    Thanks in advance,
    Regards,
    Ishmayel.v

    Hi to every one,
    I have little bit knowledge in oracle SOA suit and having knowledge in java technologies,
    I am developing one central reporting server for this I have the following requirement.
    I need to call ‘N’ departmental servers (partner links) daily at specific time I need to insert all the transaction details (xml) response in central database (db adapter).
    I’m able to call the ‘N’ partner links but I’m facing the problem while inserting ‘N’ servers response into central db using db adapter.
    I written one common xsd file for request and response for N departmental server.
    Following are the SOAP request and response formats for your reference.
    <!-- =========== request formate ========= -->
    <Reportreq xsi:type="rep:Reportreq">
    <reqdate xsi:type="xsd:string">01-01-2010</reqdate>
    <reqtime xsi:type="xsd:string">1100</reqtime>
    </Reportreq>
    <!-- ======= Response Formate ================================ -->
    <multiRef id="id0" soapenc:root="0"
         soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xsi:type="ns2:ResponseBean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
         xmlns:ns2="ReportServer">
         <errorcode xsi:type="xsd:string"/>
         <errordesc xsi:type="xsd:string" xsi:nil="true"/>
    <reportres xsi:type="xsd:string">
    <![CDATA[<response:getTransData>
              <transdate>01-01-2010</transdate>
              <transtime>1100</transtime>
              <distcode>03</distcode>
    <transdata>
    <centre>GVLH</centre><deptcode>15</deptcode><servicecode>1</servicecode>
    <cashtrans>1</cashtrans><cashamt>165</cashamt><chqtrans>0</chqtrans>
    <chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt>
    <cardtrans>0</cardtrans><cardamt>0</cardamt>
    <epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
    </transdata>
    <transdata><centre>RBVP</centre><deptcode>15</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>3000</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans>
    <cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
    <userchrgs>0</userchrgs></transdata>
    <transdata><centre>RKBH</centre><deptcode>15</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>412</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt><epaytrans>0</epaytrans>
    <epayamt>0</epayamt><userchrgs>0</userchrgs></transdata>
    <transdata><centre>ARLV</centre><deptcode>101</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>125</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
    <ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt>
    <epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
    </transdata>
    <transdata><centre>NTRS</centre><deptcode>101</deptcode>
    <servicecode>1</servicecode><cashtrans>7</cashtrans><cashamt>2567</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
    <ddamt>0</ddamt><cardtrans>0</cardtrans>
    <cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
    <userchrgs>0</userchrgs></transdata>
    <!-- I will get “transdata” tag nearly 1000 to 10000 -->     
         </response:getTransData> ]]>
    </reportres>
    </multiRef>
    In java I hold the response XML string between the <response> tag and with the DOM parser I am able to insert the response data into central server.
    Now I want to do this in BPEL, I am getting the response from N partner links but I am facing the problem while inserting the response data into central database.
    Let me know if you have any idea or small example to achieve my requirement.
    Note: All partner services were implemented in bottom up approach.
    Have a good day,
    Thanks in advance,
    Regards,
    Ishmayel.v

  • How to debug WFXML 1.1 XML response?

    Hello,
    I am using the Extended Communication configuration of a Web Activity step in a custom workflow (R/3 version 4.7).  The step is setup to start an external non-SAP WF using WFXML 1.1 and store the response in a WF Proxy container element using routing class CL_SWH_WEB_XML_ROUTER.
    The external XML response has the same structure like a response I get when connecting the same WF to a SAP test workflow instead of the external workflow.
    The problem is that the workflow proxy container field does not get populated during runtime.
    Is there any way of finding out why a workflow has a problem creating the proxy object? I couldn't find any log entries, traces or ways to simulate the incoming XML response.
    Thanks for your help.
    Regards
       Martin

    Hi Paul..
       This is a common problem when you are working with webservices, i have worked with them and not always the response of the ws comes like de wsdl says, depends of your wsdl provider.
       I suggest you that checks your response of your webservice with the Enterprise Portal Web Services Checker View
      For see this view in NetWeaver go to Window > Show View > Other > Enterprise Portal Web Services Checker
      Put the wsdl url definition in wsdl url textbox
    and the click in the letter W, this procedure brings you all methods and everything for play with the WEB Services.. and you can check the response of you webservices call funtion, checks that all the tags comes like says in the wsdl
    Good luck
    Joshua

  • How do i prevent getting a xml declaration in the xml response

    Hi,
    I am using a soap call to access a webservice via plsql.
    The xml response from the webservice starts as follows
    <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">..............
    I want to find ways to
    1. either prevent the xml tag <?xml version='1.0' encoding='UTF-8'?> from being returned in the response.
    2. or somehow convert the entire response to a string and remove it by substr (not sure about this)
    The issue i am facing is that when i run a xmltype.extract on the xml to get a particular node i am getting the
    ORA-31013: Invalid XPATH expression
    when i remove the tag from the response (using hardcoded values) i get the right values back.
    Any suggestions are welcome.
    Regards
    kpillai

    Hi,
    The code extract with hardcoded values looks like this. Please note that i added quotes in the xml statement
    '<?xml version=''1.0'' encoding=''UTF-8''?>which is not the case when oracle returns the xml and i guess thats the whole issue.
    The code below runs perfectly. But when the entire procedure runs where the xml response is returned I get the error.
    DECLARE
    v_result XMLType;
    v_xml XMLType;
    v_request_id varchar2(100);
    v_start varchar2(10);
    v_end number(10);
    p_namespace varchar2(2000):='xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:service="http://mercury.com/ppm/dm/service/1.0" xmlns:common="http://mercury.com/ppm/common/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mercury.com/ppm/dm/1.0"';
    BEGIN
         v_xml := XMLType('<?xml version=''1.0'' encoding=''UTF-8''?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header /><soapenv:Body><service:createRequestResponse xmlns="http://mercury.com/ppm/dm/1.0" xmlns:service="http://mercury.com/ppm/dm/service/1.0" xmlns:common="http://mercury.com/ppm/common/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><service:return xmlns:service="http://mercury.com/ppm/dm/service/1.0" xmlns:common="http://mercury.com/ppm/common/1.0" xmlns="http://mercury.com/ppm/dm/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <addedBy>srvnewscale</addedBy>
    <creationDate>2010-10-22T10:33:44Z</creationDate>
    <description>testing1</description>
    <name>20013876</name>
    <displayURL>http://itg.abc.com:19001/itg/web/knta/crt/RequestDetail.jsp?REQUEST_ID=12345678</displayURL>
    <identifier><id>20013876</id>
    <serverURL>http://itg.abc.com:19001/itg/ppmservices/DemandService</serverURL>
    </identifier><status>Enter - Amend Service Offering</status>
    </service:return>
    </service:createRequestResponse>
    </soapenv:Body></soapenv:Envelope>');
         v_result := xmltype.extract(v_xml,'/soapenv:Envelope/soapenv:Body/service:createRequestResponse/service:return/name', p_namespace);
    insert into result2 values(v_result);
         if (v_result is NULL)
         then
         dbms_output.put_line('no result');
         end if;
         end;
    Regards
    Edited by: 804401 on Oct 24, 2010 9:21 PM

  • Xml response in browser .. how to deal with

    OK .. I have a basic question here but I'm long winded so bear with me.
    Background:
    I am submitting an HTML form to a secure website, with a username/password, and that web site in turn returns me a webpage with XML in it that looks something like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <string xmlns="http://tempuri.org/">http://blahblah.blah.com/index.aspx?ticket=fabcdefjkjlkjlkja;lkh31bba5f7</string>
    the webpage is https, it's secured.
    I can submit the my form (not included in this post because it's not a problem) and get the XML back in the browser - but how, in my JSP or servlet (either / or) .. what is the API to retrieve the XML response (above) from the browser .......... I can manage to parse it once I can get it.
    I've done some research. but the more I do the more I get confused.
    Is it just something like request.getParameter(something or other) once the form is submitted?
    Do I need to use SAX/JAX, or DOM, XMLHTTP, javascript, HTTPClient, Xerces, Xalan ... sooooooooooo confused. ..... to actually retrieve that page into something I can work with in Java?
    Like I said once I get the page in a variable, somehow, I'm sure I can figure out how to parse the "string" variable out ................ the objective there then is to redirect the user to that URL
    I'm really lost ........... help!!!!!!!
    Thanks so much!!!!!!!!!!!!
    Edited by: hopkinca on May 16, 2008 1:04 PM

    Hi. Thanks for your thoughtful answers.
    My actual problem is much more basic. I know where to put business logic, I know how to parse XML.
    It's not either of those that is the problem.
    Here is my scenario:
    I am auto submitting a form in a servlet. (this works fine). It's an authenticated POST to an external web site.
    The submission of this form creates a browser response -- a WEB PAGE (*https*!!!!) with information I need in it (that the user shouldn't actually see). It happens to be XML. But even if it was a chapter of a book, my question is ... after the form is submitted (no problem), and the browser shows the webpage (no problem), how, in java or javascript, do I
    get the contents of that https:// webpage. (that's my problem!!)
    Does this kind of clarify my question? I'm kind of looking for more specific answers than what technology to use. Should this XML be part of the response from the POST?
    When I try to create an xml source, I get the following:
    Exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    Maybe this willhelp you. We were given the ASP code to do this.
    the way that it goes about this is
    {color:#ff0000}Set objRequest = Server.createObject("MSXML2.SERVERXMLHTTP"){color}
    objectRequest.open="POST", "https://blahlblahblah", False
    objectRequest.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    objectRequest.Send (blah blah blah ..... the parameters
    ' my comment: AT THIS POINT THIS IS LIKE SUBMITTING THE FORM, no? Except for the red part
    'then they get the contents by this:
    dim GetTheContents
    GetTheContents = objectRequest.responseText
    Then they proceed to parse it in a very ugly fashion, but I will use DOM or the like. but at least the variable "GetTHeContents" has the contents of the https webpage that was returned by the external site after submitting the form.
    Thanks again. I hope I helped clarify instead of created more confusion.
    PS I am trying AJAX now. I still can't manage to put the contents of the webpage into some kind of variable (or get it from some other kind of variable). This is my first round with Ajax.
    Edited by: hopkinca on May 20, 2008 2:15 PM

  • Xml response from rwservlet - timinginfo format

    Hello everyone,
    We've been running reports from database using the SRW package. After we upgraded to a newer version of Application Server (we may have upgraded more that just that) the reports stopped being run.
    I discovered that the problem is in the date/time format in the XML response from the report server. The SRW package is trying to convert the timinginfo string values to date using the following hardcoded date format:
    DATE_FORMAT CONSTANT VarChar2(22) := 'MM/DD/YY HH:MI AM'; -- Date-Format used to convert the timing-info
    However, the date format in the response coming back from the server is different - see below.
    <?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <job id="4314" queueType="current">
    <name>SysEmailRequest</name>
    <type>report</type>
    <status code="1">Waiting in the queue</status>
    <owner>RWUser</owner>
    <server>windev2006dev2006</server>
    <destination>
    <desType>EmailSysoeDes</desType>
    <desName>PMRFI</desName>
    <desFormat>pdf</desFormat>
    </destination>
    <timingInfo>
    <queued>Jul 28, 2006 9:51:48 AM</queued>
    <started>Jul 28, 2006 9:51:48 AM</started>
    <finished>Jul 28, 2006 9:51:48 AM</finished>
    </timingInfo>
    </job>
    </serverQueues>
    Does anyone know where to set the date format for timinginfo?
    I don't want to just modify the format in the SRW package without knowing why it changed.
    Thanks in advance,
    Rasto Sadecky

    Hello,
    The reports server uses the "machine's locale" to format the date.
    You can use the jvmoptions parameter to specify another user.language :
    rwserver server=repserver jvmoptions="-Duser.language=xx"
    Regards

  • Interesting Reqrmnt - How to avoid sending namespace in the xml response

    Hi,
    Below is the XML response we generate and send it to HTTP Receiver.
    - <ns1:CATSIMPORT xmlns:ns1="urn:pweh.com:erp:hr" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <Version>1.0</Version>
      <TrackID>{5A3C87A5-48FD-4BCD-9178-A200F10F118D}</TrackID>
    - <ReturnCode>
      <value>Success</value>
      </ReturnCode>
      </ns1:CATSIMPORT>
    Can we remove the first and last line of the xml content and send it.
    Please send in your suggestions or answers.
    Regards,
    Amar Nemalikanti

    Hi Amareshwar,
    Check my replies in this link.
    just like java code to add a tag, you can use to remove a tag, before it goes to http adapter.
    Re: How to change the incoming xml to a different namespace
    Hope that helps you to fix your issue
    Regards
    Vishnu

  • SOAP XML Response in the form of JSP

    Hi,
    I am using a command in Websphere Commerce(WC) as "WebServices Provider " .For new users command is WC specific java program which takes input and throws back the result to the calling program.
    when a client sends a SOAP xml request to WC WebService Command,it sends back the SOAP XML response in the form of JSP to client.The Client is in Microsoft .Net language.
    My Question is:
    1)How the client is interpreting the SOAP XML response in JSP.
    2)Since the client being a .Net provider,to understand this response,he has to make any extra
    configuration ???
    Can somebody in the forum can help me in this regard.
    Thanks
    Mike

    Hi Mike1999 ,
    I am assigned with one project that is based on SOAP,I dont know abc of this technology.How the events are handled by SOAP....Etc Etc....
    Just eloberate What is ment by SOAP.Why it is used.

  • The EWS URL wasn't found in the EXPR settings of the Autodiscover XML response.

    Hi Guys,
    I have posted this on
    Spiceworks Fourm as well as I have run into some urgency on this issue. I know its not fair to post twice but I really need help on this one. 
    I am busy troubleshooting an issue for one of my customers and was wondering if anyone has come across this issue before.
    One External Service Provider utilizes Autodiscover to pull EWS information in their app. There is no way we can change that to directly input EWS information. The issue I am getting is on Microsoft's Remote Connectivity Analyzer. I am testing EWS
    functionality and its failing with this response: 
    The Exchange Web Services URL wasn't found in the EXPR settings of the Autodiscover XML response.
    HTTP Response Headers:
    request-id: 5d020de0-cb52-4329-b60b-c75952247360
    X-CalculatedBETarget: MBXSERVER
    X-DiagInfo: MBXSERVER
    X-BEServer: MBXSERVER
    Persistent-Auth: true
    X-FEServer: CASSERVER
    Content-Length: 6925
    Cache-Control: private
    Content-Type: text/xml; charset=utf-8
    Date: Fri, 19 Sep 2014 10:21:01 GMT
    Set-Cookie: X-BackEndCookie=S-1-5-21-1935655697-1770027372-1801674531-47214=u56Lnp2ejJqBx8mdmZ3Jx8/SzM7Ly9LLnczM0p6ezszSy5rGzcrPms2dycvJgYHNz87L0s7P0s7Gq87Pxc3Oxc/N; expires=Sun, 19-Oct-2014 08:21:02 GMT; path=/Autodiscover; secure; HttpOnly
    Server: Microsoft-IIS/8.5
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Elapsed Time: 9135 ms.
    If I test this internally using Test-OutlookWebServices cmdlet i have all successes. If I Test Email Auto-Configuration, i get the EXPR information with the EWS URl's internally and externally. I believe there is an issue somewhere along the lines however I'm
    not sure when to continue from here. I have run Set-OutlookProvider EXPR -CertPrincipalName ********** and also tried it again with $null.
    See the post of my email test (XML Response attached on this URL): Spiceworks URL
    All other services on ExRCA works perfectly except for EWS Autodiscover. 
    If anyone out there has seen this before as i cannot find any documentation on this specific issue.
    This one is rather confusing as it usually is external works but internal fails. Certificates have been assigned correctly.
    Your prompt response would be highly appreciative!
    The Environment is Exchange 2013 CU6 with IU for the DB & ActiveSync issues as this environment is in the process of being migrated from 2007 SP3 RU10

    IIS shows no errors, I get a 200 response in the logs nothing further. I found that SSLOffloading was enabled, I disabled that as it isnt necessary as the load balancers are not performing SSL Acceleration. I have also recreated the AutoDiscoverVirtualDirectories.
    I have bypassed the Load Balancers to eliminate the issue of possibly they causing the issue. I also recreated the OutlookProvider EXPR
    If i do a test Email Auto-Configuration, I get a full XML response out of Autodiscover:
    <?xml version="1.0" encoding="utf-8"?>
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
      <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
        <User>
          <DisplayName>Jonathan Goldberg</DisplayName>
          <LegacyDN>/o=********/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=GoldbergJ</LegacyDN>
          <AutoDiscoverSMTPAddress>GoldbergJ@**************.co.za</AutoDiscoverSMTPAddress>
          <DeploymentId>01c99754-399d-4c9e-b39b-e30035ca5880</DeploymentId>
        </User>
        <Account>
          <AccountType>email</AccountType>
          <Action>settings</Action>
          <MicrosoftOnline>False</MicrosoftOnline>
          <Protocol>
            <Type>EXCH</Type>
            <Server>3812143b-8669-4232-a576-ae4d59e462d0@**************.co.za</Server>
            <ServerDN>/o=********/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=3812143b-8669-4232-a576-ae4d59e462d0@**************.co.za</ServerDN>
            <ServerVersion>73C083E3</ServerVersion>
            <MdbDN>/o=********/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=3812143b-8669-4232-a576-ae4d59e462d0@**************.co.za/cn=Microsoft Private MDB</MdbDN>
            <PublicFolderServer>webmail.**************.co.za</PublicFolderServer>
            <AD>rbkthdc1.theatres.johnnic.dom</AD>
            <OABUrl>https://webmail.**************.co.za/oab/e10f43c9-52a8-4fb9-8a87-3ba9832a426b/</OABUrl>
            <ServerExclusiveConnect>off</ServerExclusiveConnect>
            <CertPrincipalName>msstd:webmail.**************.co.za</CertPrincipalName>
          </Protocol>
          <Protocol>
            <Type>EXPR</Type>
            <Server>webmail.**************.co.za</Server>
            <SSL>On</SSL>
            <AuthPackage>Basic</AuthPackage>
            <ASUrl>https://webmail.**************.co.za/EWS/Exchange.asmx</ASUrl>
            <EwsUrl>https://webmail.**************.co.za/EWS/Exchange.asmx</EwsUrl>
            <EmwsUrl>https://webmail.**************.co.za/EWS/Exchange.asmx</EmwsUrl>
            <EcpUrl>https://webmail.**************.co.za/ecp/</EcpUrl>
            <EcpUrl-um>?rfr=olk&amp;p=customize/voicemail.aspx&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-um>
            <EcpUrl-aggr>?rfr=olk&amp;p=personalsettings/EmailSubscriptions.slab&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-aggr>
            <EcpUrl-mt>PersonalSettings/DeliveryReport.aspx?rfr=olk&amp;exsvurl=1&amp;IsOWA=&lt;IsOWA&gt;&amp;MsgID=&lt;MsgID&gt;&amp;Mbx=&lt;Mbx&gt;&amp;realm=**************.co.za</EcpUrl-mt>
            <EcpUrl-ret>?rfr=olk&amp;p=organize/retentionpolicytags.slab&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-ret>
            <EcpUrl-publish>customize/calendarpublishing.slab?rfr=olk&amp;exsvurl=1&amp;FldID=&lt;FldID&gt;&amp;realm=**************.co.za</EcpUrl-publish>
            <EcpUrl-photo>PersonalSettings/EditAccount.aspx?rfr=olk&amp;chgPhoto=1&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-photo>
            <EcpUrl-tm>?rfr=olk&amp;ftr=TeamMailbox&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-tm>
            <EcpUrl-tmCreating>?rfr=olk&amp;ftr=TeamMailboxCreating&amp;SPUrl=&lt;SPUrl&gt;&amp;Title=&lt;Title&gt;&amp;SPTMAppUrl=&lt;SPTMAppUrl&gt;&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-tmCreating>
            <EcpUrl-tmEditing>?rfr=olk&amp;ftr=TeamMailboxEditing&amp;Id=&lt;Id&gt;&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-tmEditing>
            <EcpUrl-extinstall>Extension/InstalledExtensions.slab?rfr=olk&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-extinstall>
            <OOFUrl>https://webmail.**************.co.za/EWS/Exchange.asmx</OOFUrl>
            <UMUrl>https://webmail.**************.co.za/EWS/UM2007Legacy.asmx</UMUrl>
            <OABUrl>https://webmail.**************.co.za/oab/e10f43c9-52a8-4fb9-8a87-3ba9832a426b/</OABUrl>
            <ServerExclusiveConnect>on</ServerExclusiveConnect>
            <EwsPartnerUrl>https://webmail.**************.co.za/EWS/Exchange.asmx</EwsPartnerUrl>
            <GroupingInformation>Rosebank</GroupingInformation>
          </Protocol>
          <Protocol>
            <Type>WEB</Type>
          </Protocol>
          <Protocol>
            <Type>EXHTTP</Type>
            <Server>webmail.**************.co.za</Server>
            <SSL>On</SSL>
            <AuthPackage>Ntlm</AuthPackage>
            <ASUrl>https://webmail.**************.co.za/EWS/Exchange.asmx</ASUrl>
            <EwsUrl>https://webmail.**************.co.za/EWS/Exchange.asmx</EwsUrl>
            <EmwsUrl>https://webmail.**************.co.za/EWS/Exchange.asmx</EmwsUrl>
            <EcpUrl>https://webmail.**************.co.za/ecp/</EcpUrl>
            <EcpUrl-um>?rfr=olk&amp;p=customize/voicemail.aspx&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-um>
            <EcpUrl-aggr>?rfr=olk&amp;p=personalsettings/EmailSubscriptions.slab&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-aggr>
            <EcpUrl-mt>PersonalSettings/DeliveryReport.aspx?rfr=olk&amp;exsvurl=1&amp;IsOWA=&lt;IsOWA&gt;&amp;MsgID=&lt;MsgID&gt;&amp;Mbx=&lt;Mbx&gt;&amp;realm=**************.co.za</EcpUrl-mt>
            <EcpUrl-ret>?rfr=olk&amp;p=organize/retentionpolicytags.slab&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-ret>
            <EcpUrl-publish>customize/calendarpublishing.slab?rfr=olk&amp;exsvurl=1&amp;FldID=&lt;FldID&gt;&amp;realm=**************.co.za</EcpUrl-publish>
            <EcpUrl-photo>PersonalSettings/EditAccount.aspx?rfr=olk&amp;chgPhoto=1&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-photo>
            <EcpUrl-tm>?rfr=olk&amp;ftr=TeamMailbox&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-tm>
            <EcpUrl-tmCreating>?rfr=olk&amp;ftr=TeamMailboxCreating&amp;SPUrl=&lt;SPUrl&gt;&amp;Title=&lt;Title&gt;&amp;SPTMAppUrl=&lt;SPTMAppUrl&gt;&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-tmCreating>
            <EcpUrl-tmEditing>?rfr=olk&amp;ftr=TeamMailboxEditing&amp;Id=&lt;Id&gt;&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-tmEditing>
            <EcpUrl-extinstall>Extension/InstalledExtensions.slab?rfr=olk&amp;exsvurl=1&amp;realm=**************.co.za</EcpUrl-extinstall>
            <OOFUrl>https://webmail.**************.co.za/EWS/Exchange.asmx</OOFUrl>
            <UMUrl>https://webmail.**************.co.za/EWS/UM2007Legacy.asmx</UMUrl>
            <OABUrl>https://webmail.**************.co.za/oab/e10f43c9-52a8-4fb9-8a87-3ba9832a426b/</OABUrl>
            <ServerExclusiveConnect>On</ServerExclusiveConnect>
            <CertPrincipalName>msstd:webmail.**************.co.za</CertPrincipalName>
          </Protocol>
          <Protocol>
            <Type>EXHTTP</Type>
            <Server>webmail.**************.co.za</Server>
            <SSL>On</SSL>
            <AuthPackage>Basic</AuthPackage>
            <OABUrl>https://webmail.**************.co.za/oab/e10f43c9-52a8-4fb9-8a87-3ba9832a426b/</OABUrl>
            <ServerExclusiveConnect>On</ServerExclusiveConnect>
          </Protocol>
        </Account>
      </Response>
    </Autodiscover>
    It’s so easy to sit on the side-line and being a world champion commentator, but only a select few climb into the ring knowing that there is going to be a whole lot of pain.

  • Invalid XML Response - missing xmlns=''

    I have a simple BPEL WebService using a xsd elementFormDefault="unqualified".
    {color:#0000ff}+&lt;schema attributeFormDefault="unqualified"+
    elementFormDefault="unqualified"
    targetNamespace="http://xmlns.oracle.com/InvalidXMLResponse"
    xmlns="http://www.w3.org/2001/XMLSchema"&gt;
    +&lt;element name="InvalidXMLResponseProcessRequest"&gt;+
    +&lt;complexType&gt;+
    +&lt;sequence&gt;+
    +&lt;element name="input" type="string"/&gt;+
    +&lt;/sequence&gt;+
    +&lt;/complexType&gt;+
    +&lt;/element&gt;+
    +&lt;element name="InvalidXMLResponseProcessResponse"&gt;+
    +&lt;complexType&gt;+
    +&lt;sequence&gt;+
    +&lt;element name="result" type="string"/&gt;+
    +&lt;/sequence&gt;+
    +&lt;/complexType&gt;+
    +&lt;/element&gt;+
    +&lt;/schema&gt;+{color}
    I invoke this WebService with the Web Service Test Page of OC4J
    and get an invalid xml-response (missing xmlns="").
    If i look inside the bpel-console in the instance-flow at the reply activity the
    xml-response looks good.
    GOOD Reponse (at bpel-console):
    +&lt;InvalidXMLResponseProcessResponse xmlns="http://xmlns.oracle.com/InvalidXMLResponse"&gt;+
    +&lt;result {color:#ff0000}*xmlns=""*{color}&gt;test&lt;/result&gt;+
    +&lt;/InvalidXMLResponseProcessResponse&gt;+
    Invalid Response (at every WS Client):
    +&lt;InvalidXMLResponseProcessResponse xmlns="http://xmlns.oracle.com/InvalidXMLResponse"&gt;+
    +&lt;result&gt;test&lt;/result&gt;+
    +&lt;/InvalidXMLResponseProcessResponse&gt;+
    It seams that the xml serializer of the oc4j container does create a valid xml-response.

    I just retested the testcase with an other test environment (10.1.3.4 MLR#3) and everything worked fine.
    {color:#0000ff}+&lt;env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"&gt;+
    +&lt;env:Header/&gt;+
    +&lt;env:Body&gt;+
    +&lt;InvalidXMLResponseProcessResponse xmlns="http://xmlns.oracle.com/InvalidXMLResponse"&gt;+
    +&lt;result xmlns=""&gt;test&lt;/result&gt;+
    +&lt;/InvalidXMLResponseProcessResponse&gt;+
    +&lt;/env:Body&gt;+
    +&lt;/env:Envelope&gt;+{color}
    So there should be an availagle bugfix for this issue.
    I need this bugfix for 10.1.3.3.1 because this is our production environment.

  • ATG REST Webservices - XML response

    Hi,
    I need to build an ATG REST component which returns the response in XML format and it is done.
    The question that I have here is that, in the XML response, the response XML that I exactly want is embedded inside <atgResponse>..</atgresponse> tag.
    For ex:
    The actual response that I need in the client side.
    <address>
    <address1>123 Main st</address1>
    <address2>Apt 12</address2>
    <city>Attleboro</city>
    <state>MA</state>
    <zip>02073</zip>
    </address>
    The response that I am getting back from my REST component:
    <atgResponse>
    <address>
    <address1>123 Main st</address1>
    <address2>Apt 12</address2>
    <city>Attleboro</city>
    <state>MA</state>
    <zip>02073</zip>
    </address>
    </atgResponse>
    Do I need to handle the logic of taking the xml that I needed from the XML response that is coming from my REST component, in the client side only?
    The other concern that I have is, I do not want my client application to know that I am using ATG REST services.
    Appreciate any help in this.
    Thanks in advance,
    Gopinath Ramasamy

    I have not tried it but I would probably try to extend XMLOutputCustomizer and override sendToOutputStream(Object pDocument, DynamoHttpServletResponse pResponse) method as per the requirement. Here pDocument would actually be an instance of org.dom4j.Document so you can access and update its root element. You can also process other output elements as well by iterating through the elements and when done write the Document object through org.dom4j.Document to XMLWriter. Something like below:
    Document doc = (Document)pDocument;
    //process Document object
    org.dom4j.io.XMLWriter writer = new org.dom4j.io.XMLWriter(pResponse.getWriter(), createDefaultOutputFormat());
    writer.write(doc)Override the default /atg/rest/output/XMLOutputCustomizer configuration to refer your class and see if it serves your purpose.
    API reference for XMLOutputCustomizer:
    http://docs.oracle.com/cd/E24152_01/Platform.10-1/apidoc/atg/rest/output/XMLOutputCustomizer.html

  • Xml response is auto coverting to text format unable to view result

    Xml Response is auto matiacally covert as simple text. unable to resolve this issue.
    This issue from firfox v30.
    Same service if I check with other browser I can able to see xml response.

    Hi yesprakash,
    Please check the encoding of the page as well as please update to the latest Firefox version 31: [[Update Firefox to the latest version]]
    [[Set how Firefox handles different types of files]] xml can be added here, and how to check the encoding of the page:
    # Click View > Character encoding and select the right one for xml.
    [https://developer.mozilla.org/en-US/docs/XML_in_Mozilla]
    Do you have an xml parser for the xml file? Do you have the header:
    header( 'Content-Type: text/xml, charset=utf-8' );
    I hope this helps.

Maybe you are looking for

  • How do I move songs from one account to another account

    My niece has been sharing an account with another person and wants to move her songs to her own account. Does anybody know how to do that? Thanks!

  • Why does the Firefox window needs to be resized manually every time you do something? HELP!

    I'm am using a 64-bit version of windows 7. I installed Firefox (New PC) and when i started using it every-time i clicked on something the browser would appear to freeze. But when i re-size the window by just dragging it out it would "unfreeze" and s

  • Able to post Invoice for Blocked stock from quality

    Hi I did GR for material against PO for 50 pcs, During QA32 stock posting i posted 30 pcs to Unres. stock(101) and 20 pieces to blocked stock(350) storage locations. Now when I am trying to  create  MIRO invoice verification, I am getting all the 50

  • Regarding GAP Analysis.

    Hello guyz, this is hawkin. can anyone describe the proceedure of GAP Analysis, 1> what is GAP Analysis 2>In which phase of implementation it is done 3> Are there any navigational steps for these.. 4> can u people expalin with good scenario. thanks a

  • Unable to Paste Objects from Slides into Master Slides

    I'm wondering if I'm missing a step or if anyone else has this problem: I'm adding a new master slide to a theme and trying to customize it by copying objects and text boxes I've made on a regular slide onto a master slide. I can copy and paste on th