Jump to content

Help Send XML File


roby2411

Recommended Posts

Dear All pls help me I'm totaly new with php and i tried many examples with fsockopen but they all fail and even now i don't know if it's a code problem or conection problem i need a tested script that do the second job so i can figure out where is the problem is:

[b]1ST i have an HTML form that looks like below: [/b]
[code]
<form action="page.php" method="post">
<input type="hidden" name="memberid" value="11">
<input type="hidden" name="password" value="goodpass">
<input type="text" name="key">
<input type="submit" name="submit" value="Activate">
</form>
[/code]


Is there a way that i cound hide the two hidden field to not appear when the visitor click view page source and stay able to submit the form to be send like that way
http://www.domainname.com/page.php?memberid=11&password=goodpass&key=userdatainput



[b]2nd sending XML string data to a webservice [/b]

i have an html form that user should fill first
then i have to generate and XML data type
last step i should send it to a server url i.e(http://192.168.1.1) on port 5050
I should use HTTP Post method to talk with this gate way
here is the XML example
[code]


<?xml version="1.0"?>
<SIGNData>
  <SIGNMessage>
    <Submit DeliveyReport="Yes" ReadReply="No" ReplyCharging="No" Adaptation="Yes" Redistribution="No">
      <ID>-1</ID>
      <Type>MT_TEST</Type>
      <From AddrType="AT_EMAIL" UserID="test" UserCredit="10">test</From>
      <Recipients>
        <To AddrType="AT_MISSDN">202</To>
      </Recipients>
      <Subject>PHP</Subject>
      <ObjectList>
        <Object>
        </Object>
      </ObjectList>
      <SmilFrame ID="0">
        <Duration>3</Duration>
      </SmilFrame>
      <SmilFrame ID="1">
        <Duration>3</Duration>
      </SmilFrame>
      <ServiceCode></ServiceCode>
      <LinkedID></LinkedID>
      <ClassType> MM_CT_PERSONNEL</ClassType>
      <Priority> MM_PT_NORMAL</Priority>
      <SubmitTime>2006-07-05T12:25:14-0400</SubmitTime>
      <ExpiryTime>2006-07-08T00:00:00-0400</ExpiryTime>
      <DeliveryTime>2006-07-05T00:00:00-0400</DeliveryTime>
      <ReplyDeadLine></ReplyDeadLine>
    </Submit>
  </SIGNMessage>
</SIGNData>
[/code]


how could i pass this xml string data as a file or as a string data onfly to the sepecifed port at the specifed host?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.