[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Passing the current date time in a SOAP request with SOAPUI

Posted on 2014-02-06
6
Medium Priority
?
8,697 Views
Last Modified: 2016-02-26
Hi,

I need some help with XSD and SOAP

 I have an XSD that has an element called timestamp as below

<element name="timestamp" type="dateTime" minOccurs="1" />

I am compiling the XSD using JAXB compiler to publish  a WSDL. I am then importing the WSDL into SOAPUI to create the request XMLs. My request XML has this element

 <prr:timestamp></prr:timestamp>

I would like to dynamically populate this element  with the current time stamp everytime

I send the SOAP request.

Please let me know how I can do this using the XSD.
0
Comment
Question by:pdurbha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 19

Accepted Solution

by:
Melih SARICA earned 1500 total points
ID: 39839429
If ur creating ur SOAP Request with XSL transformation u can use current-dateTime()


details are in here :
http://www.xsltfunctions.com/xsl/c0002.html
0
 
LVL 1

Author Comment

by:pdurbha
ID: 39839976
I am not using XSLT to generate the  SOAP Request (XML). I am using XSD

XSD -> WSDL --> Import to SOAPUI ---> XML (this i want populated with the current time stamp in the timestamp element as defined in my XSD.
0
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 39841140
ok.. how do u generate ur xsd  ?
0
Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

 
LVL 1

Author Comment

by:pdurbha
ID: 39844568
by hand..i coded it.
0
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 39846722
put date time while u create the xsd
0
 
LVL 1

Author Comment

by:pdurbha
ID: 39995688
I've requested that this question be deleted for the following reason:

not relevant
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These instructions are based on installing Owncloud on your new raspberry pi connected with a usb HDD. What do you need Part A? A Raspberry Pi, model B. A boot SD card for the Raspberry Pi. A usb HDD An Ethernet cable to connect to the lo…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question