Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
deadhead103 #1
Member since Apr 2017 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Headers & Stanzas
I have a project trying to connect to the US based National Weather Service (NWS).  Their documentation is non existent but I found an example PHP project using JAXL XMPP PHP Library here https://github.com/jbuitt/nwws-php-client

I can make my connection, join the chat room and am able to receive what I now think to be only header information by modifying the C# MiniClient example.  From OnReceiveXml I'm able to log e.Text and it looks like:

<message to="XXXXX@nwws-oi.weather.gov/MatriX" type="groupchat" from="nwws@conference.nwws-oi.weather.gov/nwws-oi" xmlns="jabber:client">
  <body>KABR issues CLI valid 2017-04-03T22:32:00Z</body>
  <html xmlns="http://jabber.org/protocol/xhtml-im">
    <body xmlns="http://www.w3.org/1999/xhtml">KABR issues CLI valid 2017-04-03T22:32:00Z</body>
  </html>
  <x xmlns="nwws-oi" cccc="KABR" ttaaii="CDUS43" issue="2017-04-03T22:32:00Z" awipsid="CLIATY" id="4171.16053"><![CDATA[
]]><![CDATA[
]]><![CDATA[844]]><![CDATA[
]]><![CDATA[
]]><![CDATA[CDUS43 KABR 032233]]><![CDATA[.........

Where is the actual XML stanza information?  It should look like this: view-source:https://alerts.weather.gov/cap/wwacapget.…?x=CA125849B81…
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS