Solved

Passing the current date time in a SOAP request with SOAPUI

Posted on 2014-02-06
6
7,041 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
  • 3
  • 3
6 Comments
 
LVL 19

Accepted Solution

by:
Melih SARICA earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
ok.. how do u generate ur xsd  ?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 1

Author Comment

by:pdurbha
Comment Utility
by hand..i coded it.
0
 
LVL 19

Expert Comment

by:Melih SARICA
Comment Utility
put date time while u create the xsd
0
 
LVL 1

Author Comment

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

not relevant
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Integration with ZenDesk 2 67
T2A API for Search 8 118
Read Soap services in .net 19 51
IIS and .Net Web Service 24 108
New Relic recently released its Synthetics product that allows for the creation of performance monitors that periodically test a site's performance. If you wish to test an interactive workflow New Relic employs Selenium WebDriverJS to run those test…
The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now