Click here to Skip to main content
15,915,772 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Is this possible to create a new XML file based on another XML file using XSL/XSLT? Pin
George L. Jackson30-Jul-07 12:27
George L. Jackson30-Jul-07 12:27 
QuestionSharePoint Services 3 Web Parts Pin
MetalSmith27-Jul-07 9:29
MetalSmith27-Jul-07 9:29 
QuestionXML datatype in sql server 2005 Pin
Revathij27-Jul-07 0:27
Revathij27-Jul-07 0:27 
AnswerRe: XML datatype in sql server 2005 Pin
Naji El Kotob28-Jul-07 11:06
Naji El Kotob28-Jul-07 11:06 
GeneralRe: XML datatype in sql server 2005 Pin
Revathij7-Aug-07 0:20
Revathij7-Aug-07 0:20 
Questionwriting XML in C#.net Pin
anumadhu26-Jul-07 21:16
anumadhu26-Jul-07 21:16 
QuestionCreate XML File Pin
Maynka26-Jul-07 18:56
Maynka26-Jul-07 18:56 
QuestionXmlElement Question Pin
rbreault26-Jul-07 12:15
rbreault26-Jul-07 12:15 
I have the following webservice which gets a xml payload I would like to take that payload validate it against a schema then send it to websphere MQ. I have a good portion working but when I write the payload to MQ its empty almost like I am not able to get the information being sent in. Here is the code I am using and any help would be great as I have hit a road block and still pretty new to all this.


/// <remarks>
[System.Web.Services.Protocols.SoapHeaderAttribute("payloadManifest", Direction=System.Web.Services.Protocols.SoapHeaderDirection.InOut)]
[System.Web.Services.WebMethodAttribute()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://arknet.arkona.com/wsTransport/service/ProcessMessage", RequestNamespace="http://www.starstandards.org/webservices/2005/10/transport", ResponseNamespace="http://www.starstandards.org/webservices/2005/10/transport", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Binding="starTransport")]
public virtual void ProcessMessage([System.Xml.Serialization.XmlElementAttribute(ElementName="payload")] ref Payload payload)
{

//Here is the Code that reads the XML Payload Stream and Validates it to the correct Schema before sending the message forward.

//System.Xml.XmlElement xe = payload.content[0].Any;
//XmlDocument xmlDoc = xe.OwnerDocument;
//xmlDoc.Schemas.Add(null, "http://localhost/wsTransport/ProcessCRM.xsd");
//xmlDoc.Validate(delegate(object sender, ValidationEventArgs vargs)
//{
// Console.WriteLine("{0}: {1}", vargs.Severity, vargs.Message);
//}, xe);

System.Xml.XmlElement xe = payload.content[0].Any;
XmlDocument xmlDoc = xe.OwnerDocument;



string qManager = "ARKDEV.QUEUE.MANAGER";
string channel = "SYSTEM.ADMIN.SVRCONN";
string hostName = "arkdev.arkona.com";
string qName = "ROB.IN.QUEUE";



MQEnvironment.Hostname = (hostName);
MQEnvironment.Channel = (channel);
MQEnvironment.Port = 1414;



try
{
MQQueueManager qMgr = new MQQueueManager(qManager);

MQQueue queue = qMgr.AccessQueue(qName, MQC.MQOO_OUTPUT);

MQMessage msgData = new MQMessage();

msgData.WriteString(xmlDoc.OuterXml);

MQPutMessageOptions pmo = new MQPutMessageOptions();

queue.Put(msgData, pmo);

queue.Close();

qMgr.Close();
}
catch (MQException e)
{
Console.WriteLine("Error: {0}", e.ToString());
}
}


Thanks for taking the time to look at this and any help would be great
QuestionNeed help with an xPath question Pin
Grapes-R-Fun26-Jul-07 11:17
Grapes-R-Fun26-Jul-07 11:17 
AnswerRe: Need help with an xPath question Pin
George L. Jackson26-Jul-07 14:01
George L. Jackson26-Jul-07 14:01 
GeneralRe: Need help with an xPath question Pin
Grapes-R-Fun26-Jul-07 14:45
Grapes-R-Fun26-Jul-07 14:45 
QuestionXML from file with special letters Pin
gruberdominik26-Jul-07 2:38
gruberdominik26-Jul-07 2:38 
AnswerRe: XML from file with special letters Pin
Michael Dunn26-Jul-07 7:50
sitebuilderMichael Dunn26-Jul-07 7:50 
GeneralRe: XML from file with special letters Pin
led mike26-Jul-07 8:29
led mike26-Jul-07 8:29 
GeneralRe: XML from file with special letters [modified] Pin
gruberdominik26-Jul-07 22:15
gruberdominik26-Jul-07 22:15 
GeneralRe: XML from file with special letters Pin
Michael Dunn27-Jul-07 9:55
sitebuilderMichael Dunn27-Jul-07 9:55 
QuestionXML Pin
Gyan Prakash25-Jul-07 21:44
Gyan Prakash25-Jul-07 21:44 
AnswerRe: XML Pin
George L. Jackson25-Jul-07 23:54
George L. Jackson25-Jul-07 23:54 
QuestionHow to update a parameter value which has same parameter name in the same section. Pin
zxc8925-Jul-07 20:33
zxc8925-Jul-07 20:33 
AnswerRe: How to update a parameter value which has same parameter name in the same section. [modified] Pin
George L. Jackson25-Jul-07 23:48
George L. Jackson25-Jul-07 23:48 
QuestionSelecting the unique names of the elements in XML Pin
Rocky#25-Jul-07 19:18
Rocky#25-Jul-07 19:18 
QuestionHow to Handle Inline Markup Elements in XSLT Pin
Nick Rioux25-Jul-07 8:45
Nick Rioux25-Jul-07 8:45 
AnswerRe: How to Handle Inline Markup Elements in XSLT Pin
George L. Jackson25-Jul-07 17:11
George L. Jackson25-Jul-07 17:11 
GeneralRe: How to Handle Inline Markup Elements in XSLT Pin
Nick Rioux26-Jul-07 1:29
Nick Rioux26-Jul-07 1:29 
Questionreading xml schema file and generate xml Pin
D.Sridhar25-Jul-07 8:45
D.Sridhar25-Jul-07 8:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.