Jump to content

EENew02

Members
  • Posts

    10
  • Joined

  • Last visited

EENew02's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi,I have an input file example:<ordernumber><ordernumber>and I want my output to come out as below with a blank space in the middle of the tag:<ordernumber> <ordernumber>So basically in my xslt I want to check my input element, if ordernumber element in my input file is empty then put a blank space in my output. I try so many different ways and still couldn't get it to work. Can someone please help me. I want my output to be xml not html.I tried to put this in my xslt but doesn't work:<ordernumber>xsl:text disable-output-escaping="yes"> </xsl:text></ordernumber>or <ordernumber> <ordernumber>Please HELP!!!!!!
  2. Hi,I have created a wsdl, and when I try to send a request to that service and the output of the message is <orderNew xmlns="http://test.abc.com">'>http://test.abc.com"> <orderid>123</orderid></orderNew>How do I remove this part (xmlns="http://test.abc.com") from the wsdl, so that the message can come out as <orderNew> <orderid>123</orderid></orderNew>Has something to do with namespace.Please assist. Thanks
  3. My problem is I don't know how to build a client and I am not sure what to use to build it. Maybe you can show me how to or recommend to what software I should be using to create the CLIENT. I use XML spy to create the WSDL. Have you been to the website xmethod.com I believed. If you click on one of the services it allows you to fill out the service. That is what I need to build, and I am not sure how or where I should start. Thanks.
  4. Hi,I understand a little bit about webservice. I am so new to this. I created a wsdl based on someone else wsdl. I have no clue how to test wsdl. Someone told me I have to create some kind of TestClient something like that. I have no idea how to test to see if I can send something thru my wsdl. Can someone please help me?Thanks in advance.
  5. Hmm. The code I got from the above message is coming from XML document fragment from the SOAP envelope. This is what it looks like: <ns_products:attributes> <ns_products:attribute xmlns:ns_products="http://types.abc.com">Speed</ns_products:attribute> <ns_products:value xmlns:ns_products="http://types.abc.com">56 MBPS</ns_products:value> </ns_products:attributes>- <ns_products:attributes> <ns_products:attribute xmlns:ns_products="http://types.abc.com">Voltage</ns_products:attribute> <ns_products:value xmlns:ns_products="http://types.abc.com">900 V</ns_products:value> </ns_products:attributes>By looking at the message above I want to be able to tranform the above code in my xslt. This is what I did but I am not sure it's right. In my xslt I have as this:- <attributes>- <xsl:for-each select="ServiceAddChange">- <attribute> <xsl:value-of select="@name" /> </attribute>- <value> <xsl:value-of select="@value" /> </value> </xsl:for-each> </attributes>
  6. Hi,I have this xml file that someone send it to me and I have a hard time understand the code below can someone help me interpret the code below? What code below is a sample output message. If I need to translate this code and put into my XSLT, how do I do it?<products xmlns="http://types.networx.gci.com/jaws"><addItem>Borad Band Cable Modem</addItem> <attributes><attribute xmlns="http://types.net.abc.com/jaws">Speed</attribute> <value xmlns="http://types.net.abc.com/jaws">56MBPS</value> </attributes><attributes> <attribute xmlns="http://types.net.abc.com/jaws">Voltage</attribute> <value xmlns:ns_products="http://types.net.abc.com/jaws">90 V</value> </attributes>Thanks in advance
  7. What you gave me worked but I have to modified it a little bit. Thank you!!!!
  8. Thank you so much for taken your time to answer my question. I will definitely try this out and I will let you know. Thank you thank you!!!!
  9. Hi boen_robot,Thank you for your reply. Yeah it's a little trickier in this case, the service_id elements are unknown. I was just given an example. The service_id elements could be anything. That's why I am not sure how to do it. I am going to try what you have provided. In the example I gave three service_id but assuming I don't know how many service_id I will have, sometimes I can have 1 or sometimes I can have 8 service_id. Somehow I think I have to create a loop or something like that but I am not sure how to. Can you please help me see if you have any other options that I can resolve this issue. I greatly appreciate it. Thanks
  10. Hi,I am trying to do my transformation but I am having a hard time checking for one field but being send multiple times.So when sending an order, I only have one order but within the order I have three service_id, it would look like this in my input fileInput file<service_id>123<service_id><service_id>456<service_id><service_id>789<service_id>The expected Ouput need to look like this<ServiceNumber>123, 456, 789</ServiceNumber>How do I take the above values and concatenate into one field?If I do the below code it will not work because how does it know which service_id it will concat together, since the field names are the same.<ServiceNumber> <xsl:value-of select="concat(service_id, ',', service_id, ',', service_id' "/><ServiceNumber>PLEASE PLEASE HELP...I am so frustrated and stuck.thanks in advance
×
×
  • Create New...