How would I do a http post of the below listed XML string within a JSP?

Hi,
How would I do a http post of the below listed XML string within a JSP?
<DoService xmlns="http://www.gdinrw.org/wss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="WSS" version="1.0">
<ServiceRequest DCP="HTTP_POST" mimeType="text/xml" encoding="UTF-8"><![CDATA[REQUEST=GetCapabilities&SERVICE=WMS]]></ServiceRequest>
<AuthMethod>urn:opengeospatial:authNMethod:OWS:1.0:password</AuthMethod>
<Credentials>guest,guest</Credentials>
<FacadeUrl>https://bern:8443/wss_umn_wms/WSS</FacadeUrl>
</DoService>
Thanks,
John

Yes,
I need to set up data as POST format before I POST it.
To be more specific I know how to post within a JSP if an xml element is like:
<AuthMethod>urn:opengeospatial:authNMethod:OWS:1.0:password</AuthMethod>
where the field is AuthMethod and the value is urn:opengeospatial:authNMethod:OWS:1.0:password
but what I am not sure of is when the field has values embedded within it like:
<ServiceRequest DCP="HTTP_POST" mimeType="text/xml" encoding="UTF-8"><![CDATA[REQUEST=GetCapabilities&SERVICE=WMS]]></ServiceRequest>:
It has a field of ServiceRequest and a value of ![CDATA[REQUEST=GetCapabilities&SERVICE=WMS]]
but it also other value embedded with ServiceRequest like mimeType="text/xml" .
Thanks,
John

Similar Messages

  • How would I do a http post with a xml file

    How would I do a http post with a xml file.
    I have a url called https://localhost:8443/wss/WSS and the XML file is sent as part of the HTTP POST body.
    How would I send this XML file when posting?

    most people just add feedback to the comments they've asked about already, rather than ignoring all the feedback and making a new post with the exact same information:
    http://forum.java.sun.com/thread.jspa?threadID=5247331&messageID=10020973#10020973
    If you want to add in an XML file to a POST command, you'd add it just like any other file you'd attach to a post request, especially (if you're request is the same as your last post) if you're just doing a jsp page. I'd do it something like this:
    <form method=POST ENCTYPE="multipart/form-data" action="https://rcpdm.mnb.gd-ais.com/Windchill/servlet/IE/tasks/DJK/fcsAddContentComplete.xml">
    <H3> File Name </H3>
    <input type=file name=filename>
    <input type=submit value="Do it!">
    </form>Then again, this solution has literally nothing to do with java, and you still need to make sure that your servlet knows what to actually do with that information you're sending it.

  • How to Invoke service using HTTP POST in BPEL?

    I have a client using .net service with a web page http://.../httpreceive.aspx which is invoke through an http post. How can we post xml message using http post to the url in BPEL. Are there any documentation on doing this? Will this require writing a java class to do an http post the xml message to the url?
    Edited by: sns724 on Feb 12, 2009 11:56 AM

    I created a wsdl with the http-binding to do a HTTP Post and I'm getting a com.collaxa.cube.ws.wsif.providers.http.WSIFOperation_HTTP@1ac9964 : Could not invoke 'process'; nested exception is: java.lang.NullPointerException.
    Here's my wsdl with the binding:
    <definitions name="TestHTTPost" targetNamespace="http://test.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://test.com"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://hyphen.com"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="AddressBookEntry">
    <complexType>
    <sequence>
    <element name="AddressBookNumber" type="string"/>
    <element name="Name" type="string"/>
    <element name="AddressLine1" type="string"/>
    <element name="AddressLine2" type="string"/>
    <element name="City" type="string"/>
    <element name="State" type="string"/>
    <element name="PostalCode" type="string"/>
    <element name="Phone" type="string"/>
    <element name="Fax" type="string"/>
    <element name="Email" type="string"/>
    <element name="ElectDest" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="PostMessageResult">
    <complexType>
    <sequence>
    <element name="Result" type="string"/>
    <element name="Errors">
    <complexType>
    <sequence>
    <element name="Error">
    <complexType>
    <sequence>
    <element name="ErrorDescription" type="string"/>
    <element name="ErrorSource" type="string"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="HTTPPostServiceRequestMessage">
    <part name="payload" element="tns:AddressBookEntry"/>
    </message>
    <message name="HTTPPostServiceResponseMessage">
    <part name="payload" element="tns:PostMessageResult"/>
    </message>
    <portType name="HTTPPostService">
    <operation name="process">
    <input message="tns:HTTPPostServiceRequestMessage" />
    <output message="tns:HTTPPostServiceResponseMessage"/>
    </operation>
    </portType>
    <binding name="HTTPPost" type="tns:HTTPPostService">
    <http:binding verb="POST"/>
    <operation name="process">
    <http:operation location="/httpreceive.aspx"/>
    <input>
    <mime:mimeXml part="payload"/>
    <mime:content type="text/xml"/>
    </input>
    <output>
    <mime:mimeXml part="payload"/>
    <mime:content type="text/xml"/>
    </output>
    </operation>
    </binding>
    <service name="HTTPPostService">
    <port name="HTTPPost" binding="tns:HTTPPost">
    <http:address location="https://testxml.solutions.com"/>
    </port>
    </service>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PARTNER LINK TYPE DEFINITION
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <plnk:partnerLinkType name="HTTPPostService">
    <plnk:role name="HTTPPostServiceProvider">
    <plnk:portType name="tns:HTTPPostService"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

  • Receiving Group Text : How do i see who else is in the distribution list???

    Receiving Group Text : How do i see who else is in the distribution list???
    other phones seem to have this, how can i see this? 
    Post relates to: Pre p100eww (Sprint)

    Use his/her Apple ID for iMessage on your phone...you'll actually receive the messages in real time.

  • How to get latest record on top of the result list

    Hi Gurus,
    How to get latest record on top of the result list when you open the record.
    saved data method in BT120H_CPL of OverView page and result list in ICCMP_INBOX.
    Regards,
    Ravi

    Hi
    Try sort descending by on fileld "changed at ".
    manipulate the sort depends on your requirement
    Regards
    Logu

  • How do I add songs to my 'on the go' list on my ipod classic?

    How do I add songs to my 'on the go' list on my ipod classic?

    Find the song you want to add, but when you click on it with the Select button, hold the click until it blinks a couple times. That will add the song to that playlist. I hope this helps! :-)

  • How do you filter entities by properties in the Distribution List?

    Hello, experts:
    Can you tell me how I can filter entities by property in the Distribution List? For example, I only want to distribute the input schedule to the entities that have a "PROJECTLVL" property of "Y".
    Thank you.
    Bei

    A lot of the collective consciousness:
    How to improve your experience with Apple Support Communities ( ASC )
    Easiest way to all User Tips on Using ASC may be to add " /content " to the URL then click the User Tips Category TAB
    *some User Tips have some of the same stuff but also some unique
    SITEMAP | Apple Support Communities has some gems as well

  • I just downloaded 3 podcast items into my iPod shuffle but don't know how to listen to it.  It plays the music list but don't know how to get to my podcast list to play it..

    I just downloaded 3 podcast items into my iPod shuffle but don't know how to listen to it.  It plays the music list but don't know how to get to my podcast list to play it..

    jfromnj wrote:
    I purchased and downloaded the Family Pack of IWork.  I recently purchased another computer (MacBook Pro) and I want to be able to use IWork on the new
    computer but don't know how to go about it.  The only thing on the Apple home page is to purchase either the item or trial pack.  I don't think I should have to purchase anything since a family pack covers 5 computers in the same household.  Please, if someone knows how to go about this and what I need to do so please let me know.  Thank you.
    You didn't keep the download for future use?

  • How do you find what you posted to the support forum?

    Last night I posted a question about Firefox being unable to load certain https URLs, but now I can't find it. I would like to be able to find it to see if anyone has made any helpful replies. In the forum settings, I have the following checkboxes:
    Watch forum threads I start:
    Watch forum threads I comment in:
    Watch KB discussion threads I start:
    Watch KB discussion threads I comment in:
    Send emails for private messages:
    All of the above settings are checked, but I can't find where in the interface for these forums I should go to view the threads and comments that I am "watching."
    I will bookmark this present support topic so that I can return to it later.
    thank you for any help you can provide!

    ha ha ha oh my god...
    okay, thank you for the help... I see what the problem is... this web site's UI has a shortcoming...
    this URL:
    https://support.mozilla.org/en-US/home
    appears to be the home page of the forums... but it is not....
    the home page of the forums is buried in a link off to the side in a list labeled "For Contributors"... I mean... by seeking help in the forums, I'm now a "contributor"? ehhh... English... It'd be nice if the UI designers would use it...
    the home page to the forums is found via this URL:
    https://support.mozilla.org/en-US/questions
    See... whoever named that URL had the right idea... instead of
    https://support.mozilla.org/en-US/contributors , the person used:
    https://support.mozilla.org/en-US/questions
    hmmm.... now if the heading on the right said:
    "For people with questions"
    then I would have scanned it more closely, and I would have noticed "Support Forum Home" in the list.
    I think the fact that so many people use Firefox is really a testament to how bad the other software out there really is, not to how good the Firefox stuff is or how responsive the firefox people are... E.g. is anyone going to actually learn from my above experience, and make the support forums easier to find?
    Is anyone going to actually put a link to the forums in the dashboard for the account that is used to log into the forums?
    No, not a chance...
    I mean, yes, I get that the link to the forums home page is always in the footer at the right, but come on, for crying out loud... so are stupid advertisements... it's a footer or side bar or whatever you want to call it... people are trained on a subconscious level, by now, to ignore that crap. If you were going to design a forum, would you take the most important links, and put them off to the side, where they are less likely to be noticed?
    This is what I see when I bring up my dashboard:
    https://support.mozilla.org/en-US/user/630258
    I mean, if you are a small time developer, with a few thousand users, you probably don't have the time or the resources to make something that's optimal... but when you have millions upon millions of users... optimizing your interface might be worth looking into.... you know... auditing the performance and effectiveness of your UI now and again might be a good idea... You take the few minutes that you waste a user with a confusing counter-intuitive non-standards-based interface, and you multiply that by millions of users, and what can I say... that's a *lot* of waste.
    You don't even have an index of forum content... everything is found by searching... Imagine if you walked into a library, and they had NO catalog.. Instead, all books just tossed into a database, and the only way to find anything is by searching. That would be... just incredibly stupid.... That is what this forum interface is.

  • I lost my iphone and i would like to know how would i be able to back up the things that are on my phone with out me having the phone

    I would like to know how would I be able to back up my phone with out me having the phone with me ?

    sherrickia21 wrote:
    I had my contacts and everything else back up
    Then you can restore from that backup with the new iPhone.
    iOS: How to back up and restore your content
    http://support.apple.com/kb/ht1766

  • How to correctProcess Order confirmation data posted in the previous month

    Hi All PP Gurus,
    Can anybody tell me the answer of following
    How we can correct the process order confirmation data posted in the previous month.

    Dear Ashok/Brahmankar,
    Actually i am facing the following problem:-
    1) If you cancel the confirmation done in the previous month by the tcode CORS, the CO document is posted in the previous period because we cannot change the posting date in CORS. But the previous period is already closed.
    Can we change the posting date in CORS manually? Or do you have any other idea? 
    2) When reading the master data in COR2, I face the error because the status of PO is already set as 'DLV'.
    Do we need to read the master data even when the value is changed in KP26?
    Thanks,
    Narayan

  • Itunes and iphone: how do you separate music and video on the purchase list

    Hi, I buy my music and video on itunes and synchronise it with my iphone. When listening to the music from the iphone, the videos are unfortunately mixed with the music, which does not make any sense: it should be dispatched in two different play list. The playlist I use is called "purchases" but I don't have any "only music" play list. When I go to the Iphone parameters, I have not selected the function "include de video clips", so why are they mixed???

    From the description you gave you were treating recent purchases as a play list (It can be but as you discovered it's not the best use for it.)and that's what was causing the problem.
    Most of us can't get all our music, not to mention videos, into an iPhone so we create play list so we can sync to them.
    Set up a few for practice, say 25 songs each, and see how that works for you.
    Or try the "Genius" feature.
    Once you get the hang of it you can create your own mixes for all moods and occasions.
    Tired of a play list? Delete it, it won't harm your library, and create another.
    Do the same with your videos, only selected one are to be synced.
    You haven't been making full use of your iTunes/iPhones set up.
    Go here and get the manual : http://support.apple.com/manuals/

  • How To Get Internal Modem Set Up in the Fax List - G4 AGP

    Recently installed OS 10.4.8 on my friend's upgraded G4 AGP (Sawtooth). Tried to set up his Mac's internal modem for faxing (no internet connection, he has cable modem for that). Got the fax set up to receive without problem. Tested it and it acknowledges incoming calls and will pick up and log the fax.
    The problem is in setting up to send a fax. Although the internal modem shows up in the Apple Profiler and works to receive faxes, it just won't show up in the Fax List under the Printer Setup Utility and therefore isn't selectable under PDF on the Print window to allow sending a fax.
    I've searched Mac Help in vain. The set up of modems isn't really addressed. What am I missing? On my MDD G4, once I had the modem installed and set up to receive, it just showed up in the Fax List. I didn't have to do anything else.
    Any suggestions would be appreciated.
    Thanks,
    Carl B.

    So, when you go in to System Preferences > Print & Fax > Set Up fax Modem ..., Internal Modem is NOT showing up in Fax List?
    Does Internal Modem.app exist in /Users/{shortUserName}/Library/Printers/?

  • How to save only newly added elements from the trailing list

    Dear,
    I have a shuttle bean with left and right trailing lists.
    At some point I save the right trailing list content to DB. Then I add additinal elements to the trailing list. Trying to save again gives me oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key
    exception.
    What is the approach I can take to only save newly added elements from the shuttle?
    I am wondering if I can put the extra logic (what logic would that be - do I need to check the PK value that is already in the database?) in the AM method with which I save the shuttle like here (TicketID and ResponsibilityID are primary key)
    if (items != null)
    Object ia[] = items.toArray();
    for(int i=1; i<ia.length; i++)
    Row rowApproval = vo.createRow();
    vo.insertRow(rowApproval);
    rowApproval.setNewRowState(Row.STATUS_INITIALIZED);
    Row row = vo.getCurrentRow();
    row.setAttribute("TicketId",items.get(0));
    row.setAttribute("ResponsibilityId",items.get(i) );
    row.setAttribute("Status",items.get(i));
    or should I do something in the EO?
    Thank you
    Anatoliy

    Hi,
    Can you please clarify - do I have to make a loop? I mean for every record/element in the trailing list
    I run the VO (that I will create) VO.executeQuery?Yes you do need to execute the VO for every record....by passing the different parameter in each iteration.
    Regards,
    Gyan

  • How to give if condition in XSLT for the below issue

    I have a customer order in .Txt which is picked by my FTP process & in mediator mapping will be done. Here i have an issue where the Txt file is in delimiter file it is having Customer Order number(CON) in each line of a single record,now i have to ignore the CON and to pic all the other details of the same Order. Here in the below i'm placing the sample file. where each order no. is repeated along with remaining details of same order. My problem is when i deployed each CON of line is taking as a single order., after reading CON details once it should jump to new CON. In this Stock code & Quantity are changing, so it should pic this excluding CON in each line.
    Customer order number;Order Date;Stock code;Quantity;Leverans adress namn;Leverans adress rad 1;Leverans adress rad 2;Leverans adress rad 3;Postnummer;Stad;ButiksID
    "61068344";"31-01-11";"02716Z0";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
    "61068344";"31-01-11";"99H10048-00";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
    "61068344";"31-01-11";"99H10046-00";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
    "61068344";"31-01-11";"100-99150000-60";"4";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
    "61068344";"31-01-11";"0278812";"2";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
    "61068344";"31-01-11";"534970";"1";"Telenor Sverige AB";"Inköp Verkstan";"Industrigatan 33B";"";"212 28";"Malmö";"302"
    "61068373";"31-01-11";"1234-0433";"1";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
    "61068373";"31-01-11";"100-92080000-60";"30";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
    "61068373";"31-01-11";"0138";"40";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
    "61068373";"31-01-11";"CM011674";"40";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
    "61068373";"31-01-11";"CM012044";"10";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
    "61068373";"31-01-11";"IC416";"30";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
    "61068373";"31-01-11";"1230-1847";"10";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
    "61068373";"31-01-11";"99H10046-00";"2";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"
    "61068373";"31-01-11";"CPW012602";"30";"Strålfors Svenska AB";"Web Consumer";"Logistik Telenor";"Långgatan 8";"341 38";"Ljungby";"269"

    Here i missed one thing to say, After reading all the fields from first record of CON the Stock_Code & Quantity to be picked and added in the same record from next line of CON untill the CON is changed. For this can we do with NXSD file? using which option can we use this? & how can we complete this in XSLT?

Maybe you are looking for

  • How can I stop emails deleting on my hotmail account

    Hi My iphone 4 is set up to deliver my hotmail emails to my phone.  The actions I take on my phone (e.g., deleting an email) are being replicated in my hotmail account on the server.  I appreciate this is no bad thing except that both myself and my w

  • Replace scrollkeeper with extra/rarian?

    pacman asks "Replace scrollkeeper with extra/rarian? [Y/n]" Should I do this, what is going to be the result of this? Edit: well, just 'did it' and all seems fine.. Questions like this make me nervous sometimes.. Last edited by kel_p (2007-10-14 16:4

  • Auto GR/IR for Stock transfer Orders

    Can anyone throw some light on Auto GR/IR? I would appreciate if you can write config details as well. Thanks Raj

  • When I touch safari I get google maps on iPhone 5

    On my iPhone 5 when I touch the safari icon I get google maps, I can not get to the Internet. Any thoughts? Last night I backed up to icloud.

  • Palm desktop installation on Win 7--?serial port will work

    Still syncing on my old laptop.  Tried to use the palm desktop CD to install ver 4.1 for my Kyocera 7135 on on win 7 64 bit machine.  It wouldn't run the installation program.  I had a virtual PC installed anyway and got the desk top installed on tha