[U2] UV Creating a Soap Request

2013-04-16 Thread Peter Cheney
Hi Everyone,

Recently I had some success getting a secure version of this to work etc. but 
now they want to change it to non-SSL so am trying to get plain old http to 
work.

Using this example as a starting point: 
https://u2devzone.rocketsoftware.com/accelerate/articles/soap-api

I've managed to (I think) translate the example above with our URL and soap 
action etc. but I have a question regarding the UV SOAPCreateRequest and hope 
someone may be able to assist.

The URL I specify in SOAPCreateRequest is 
http://our-dev.domain.com/apps/jobs/Services/Job.svc

However in the log file I get:
04/16/2013 15:05:16 [ 446706 925928 ] Assembled Request:
POST /apps/jobs/Services/Job.svc HTTP/1.1
Date: Tue, 16 Apr 2013 05:05:16 GMT
Host: our-dev.domain.com
SOAPAction: http://tempuri.org/IJobService/CreateJob1UserPartyRole
User-Agent: IBM UniVerse 11.x
Content-Type: text/xml; charset=utf-8
Content-Length: 1670

The POST seems to be missing the first part of the URL and with the response 
being a 400 bad request I'm wondering if there's anything I can do to force 
the complete URL?
In particular is there a SOAP command that I'm missing? Briefly I do the 
following in this order:
Ret = setHTTPDefault( VERSION , 1.1 )
Ret = SOAPSetDefault( VERSION , 1.2 )
Ret = SOAPCreateRequest( URL , SoapAction , SoapReq )
Ret = SOAPSetRequestContent( SoapReq , PAYLOAD , 1 )
Ret = SOAPSubmitRequest( SoapReq, Timeout, RespHeaders, RespData, SoapStatus )

The return codes from above are:
setHTTPDefault result = 0
SOAPSetDefault result = 0
SOAPCreateRequest result  = 0
SOAPSetRequestContent result  = 0
SOAPSubmitRequest result  = 0

The SoapStatus from SOAPSubmitRequest above is:
Response status   : 400▒Bad Request

The RespHeaders returned from SOAPSubmitRequest above is:
Response headers  : 
Cache-Control▒private▒Server▒Microsoft-IIS/7.5▒X-Powered-By▒4.0.30319▒X-Powered-By▒ASP.NET▒Date▒Tue,
 16 Apr 2013 05:46:06 GMT▒Content-Length▒0

To me the soap action seems good and the xml in the payload looks ok too so it 
has to be something in the delivery. We're running UV 10.3.4 on AIX 5.3.

Reckon I must be missing something above so looking at the basic ref manual but 
it does not indicate if any of the soap commands therein and the above have 
other dependencies/pre-requisites and in what order they should occur. I guess 
a prior soap knowledge is expected but I'm just starting to get into this so if 
anyone can assist that'd be really helpful thanks.

Cheers
Peter


 ---
Note: 
This email (inc all attachments) is for the use of the intended recipient(s) 
only.
Privileged or confidential information may be contained in this communication. 
If you have received this email in error, please notify the sender immediately 
and then delete all copies of this message from your computer network. If you 
are not the intended recipient, you must not keep, use, disclose, copy or 
distribute this email without the author's prior permission. If you are the 
intended recipient and you do not wish to receive similar electronic messages 
from us in future, then please respond to the sender to this effect. 
We have taken precautions to minimise the risk of transmitting software 
viruses, but advise you to carry out your own virus checks on this email and 
its attachments. We do not accept liability for any loss or damage caused by 
software viruses and do not represent that this transmission is free from 
viruses or other defects. 
Firstmac Limited (ABN 59 094 145 963) (AFSL 290600) 
 ---
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UV Creating a Soap Request

2013-04-16 Thread Hona, David
Hi Peter

Is your SOAPAction correct?? 

The tempURI.org is a Microsoft standard placeholder - usually replaced by a 
proper URI or hostname name, etc.

SOAPAction: http://tempuri.org/IJobService/CreateJob1UserPartyRole

Cheers,
David


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Peter Cheney
Sent: Tuesday, 16 April 2013 4:14 PM
To: U2 Users List (u2-users@listserver.u2ug.org)
Subject: [U2] UV Creating a Soap Request

Hi Everyone,

Recently I had some success getting a secure version of this to work etc. but 
now they want to change it to non-SSL so am trying to get plain old http to 
work.

Using this example as a starting point: 
https://u2devzone.rocketsoftware.com/accelerate/articles/soap-api

I've managed to (I think) translate the example above with our URL and soap 
action etc. but I have a question regarding the UV SOAPCreateRequest and hope 
someone may be able to assist.

The URL I specify in SOAPCreateRequest is 
http://our-dev.domain.com/apps/jobs/Services/Job.svc

However in the log file I get:
04/16/2013 15:05:16 [ 446706 925928 ] Assembled Request:
POST /apps/jobs/Services/Job.svc HTTP/1.1
Date: Tue, 16 Apr 2013 05:05:16 GMT
Host: our-dev.domain.com
SOAPAction: http://tempuri.org/IJobService/CreateJob1UserPartyRole
User-Agent: IBM UniVerse 11.x
Content-Type: text/xml; charset=utf-8
Content-Length: 1670

The POST seems to be missing the first part of the URL and with the response 
being a 400 bad request I'm wondering if there's anything I can do to force 
the complete URL?
In particular is there a SOAP command that I'm missing? Briefly I do the 
following in this order:
Ret = setHTTPDefault( VERSION , 1.1 ) Ret = SOAPSetDefault( VERSION , 
1.2 ) Ret = SOAPCreateRequest( URL , SoapAction , SoapReq ) Ret = 
SOAPSetRequestContent( SoapReq , PAYLOAD , 1 ) Ret = SOAPSubmitRequest( 
SoapReq, Timeout, RespHeaders, RespData, SoapStatus )

The return codes from above are:
setHTTPDefault result = 0
SOAPSetDefault result = 0
SOAPCreateRequest result  = 0
SOAPSetRequestContent result  = 0
SOAPSubmitRequest result  = 0

The SoapStatus from SOAPSubmitRequest above is:
Response status   : 400▒Bad Request

The RespHeaders returned from SOAPSubmitRequest above is:
Response headers  : 
Cache-Control▒private▒Server▒Microsoft-IIS/7.5▒X-Powered-By▒4.0.30319▒X-Powered-By▒ASP.NET▒Date▒Tue,
 16 Apr 2013 05:46:06 GMT▒Content-Length▒0

To me the soap action seems good and the xml in the payload looks ok too so it 
has to be something in the delivery. We're running UV 10.3.4 on AIX 5.3.

Reckon I must be missing something above so looking at the basic ref manual but 
it does not indicate if any of the soap commands therein and the above have 
other dependencies/pre-requisites and in what order they should occur. I guess 
a prior soap knowledge is expected but I'm just starting to get into this so if 
anyone can assist that'd be really helpful thanks.

Cheers
Peter


 ---
Note: 
This email (inc all attachments) is for the use of the intended recipient(s) 
only.
Privileged or confidential information may be contained in this communication. 
If you have received this email in error, please notify the sender immediately 
and then delete all copies of this message from your computer network. If you 
are not the intended recipient, you must not keep, use, disclose, copy or 
distribute this email without the author's prior permission. If you are the 
intended recipient and you do not wish to receive similar electronic messages 
from us in future, then please respond to the sender to this effect. 
We have taken precautions to minimise the risk of transmitting software 
viruses, but advise you to carry out your own virus checks on this email and 
its attachments. We do not accept liability for any loss or damage caused by 
software viruses and do not represent that this transmission is free from 
viruses or other defects. 
Firstmac Limited (ABN 59 094 145 963) (AFSL 290600)
 ---
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

** IMPORTANT MESSAGE *   
This e-mail message is intended only for the addressee(s) and contains 
information which may be
confidential. 
If you are not the intended recipient please advise the sender by return email, 
do not use or
disclose the contents, and delete the message and any attachments from your 
system. Unless
specifically indicated, this email does not constitute formal advice or 
commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. 
We can be contacted through our web site: commbank.com.au. 
If you no longer wish to receive commercial 

Re: [U2] is this an INDEX ISSUE?

2013-04-16 Thread Hona, David
Hello David

1) Is your file you're indexing corrupt or does it have any errors or warnings 
as reported by 'fixtool'? If corrupt, can you repair it (after backing it up:)) 
?
2) What queries using the indices are slow? All or one?
3) What UV release?
4) How and when do you re-index the file? 
5) Has the file been recently been resized/restored or otherwise changed?

Cheers,
David

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of david yu
Sent: Saturday, 13 April 2013 9:47 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] is this an INDEX ISSUE?

hello,
 
We have a file that is updated almost every minute for transportation 
appointment, we index a field in a file to make the reporting much faster but 
recently we noticed when we ran the report not all the transportation appt 
shows up on the report, so customer doesnt get their transportation. We have 
been rebuilding the index every night but problem still exists. Anyone 
encounter this issue? we are on HP-UX b.11.23.
 
thanks in advance.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

** IMPORTANT MESSAGE *   
This e-mail message is intended only for the addressee(s) and contains 
information which may be
confidential. 
If you are not the intended recipient please advise the sender by return email, 
do not use or
disclose the contents, and delete the message and any attachments from your 
system. Unless
specifically indicated, this email does not constitute formal advice or 
commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. 
We can be contacted through our web site: commbank.com.au. 
If you no longer wish to receive commercial electronic messages from us, please 
reply to this
e-mail by typing Unsubscribe in the subject line. 
**



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UV Creating a Soap Request

2013-04-16 Thread Symeon Breen
The post header in http is a relative url so that is not the problem - have
you set the Soap action correctly ?



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Peter Cheney
Sent: 16 April 2013 07:14
To: U2 Users List (u2-users@listserver.u2ug.org)
Subject: [U2] UV Creating a Soap Request

Hi Everyone,

Recently I had some success getting a secure version of this to work etc.
but now they want to change it to non-SSL so am trying to get plain old
http to work.

Using this example as a starting point:
https://u2devzone.rocketsoftware.com/accelerate/articles/soap-api

I've managed to (I think) translate the example above with our URL and soap
action etc. but I have a question regarding the UV SOAPCreateRequest and
hope someone may be able to assist.

The URL I specify in SOAPCreateRequest is
http://our-dev.domain.com/apps/jobs/Services/Job.svc

However in the log file I get:
04/16/2013 15:05:16 [ 446706 925928 ] Assembled Request:
POST /apps/jobs/Services/Job.svc HTTP/1.1
Date: Tue, 16 Apr 2013 05:05:16 GMT
Host: our-dev.domain.com
SOAPAction: http://tempuri.org/IJobService/CreateJob1UserPartyRole
User-Agent: IBM UniVerse 11.x
Content-Type: text/xml; charset=utf-8
Content-Length: 1670

The POST seems to be missing the first part of the URL and with the response
being a 400 bad request I'm wondering if there's anything I can do to
force the complete URL?
In particular is there a SOAP command that I'm missing? Briefly I do the
following in this order:
Ret = setHTTPDefault( VERSION , 1.1 ) Ret = SOAPSetDefault( VERSION ,
1.2 ) Ret = SOAPCreateRequest( URL , SoapAction , SoapReq ) Ret =
SOAPSetRequestContent( SoapReq , PAYLOAD , 1 ) Ret = SOAPSubmitRequest(
SoapReq, Timeout, RespHeaders, RespData, SoapStatus )

The return codes from above are:
setHTTPDefault result = 0
SOAPSetDefault result = 0
SOAPCreateRequest result  = 0
SOAPSetRequestContent result  = 0
SOAPSubmitRequest result  = 0

The SoapStatus from SOAPSubmitRequest above is:
Response status   : 400-Bad Request

The RespHeaders returned from SOAPSubmitRequest above is:
Response headers  :
Cache-Control-private-Server-Microsoft-IIS/7.5-X-Powered-By-4.0.30319-X-Powe
red-By-ASP.NET-Date-Tue, 16 Apr 2013 05:46:06 GMT-Content-Length-0

To me the soap action seems good and the xml in the payload looks ok too so
it has to be something in the delivery. We're running UV 10.3.4 on AIX 5.3.

Reckon I must be missing something above so looking at the basic ref manual
but it does not indicate if any of the soap commands therein and the above
have other dependencies/pre-requisites and in what order they should occur.
I guess a prior soap knowledge is expected but I'm just starting to get into
this so if anyone can assist that'd be really helpful thanks.

Cheers
Peter


 

---
Note: 
This email (inc all attachments) is for the use of the intended recipient(s)
only.
Privileged or confidential information may be contained in this
communication. If you have received this email in error, please notify the
sender immediately and then delete all copies of this message from your
computer network. If you are not the intended recipient, you must not keep,
use, disclose, copy or distribute this email without the author's prior
permission. If you are the intended recipient and you do not wish to receive
similar electronic messages from us in future, then please respond to the
sender to this effect. 
We have taken precautions to minimise the risk of transmitting software
viruses, but advise you to carry out your own virus checks on this email and
its attachments. We do not accept liability for any loss or damage caused by
software viruses and do not represent that this transmission is free from
viruses or other defects. 
Firstmac Limited (ABN 59 094 145 963) (AFSL 290600)
 

---
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2240 / Virus Database: 2641/5746 - Release Date: 04/15/13

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] is this an INDEX ISSUE

2013-04-16 Thread Augusto Alonso
Hi.
If you have a lot of nulls in CALL.FILE field, you should create this index
with NO.NULLS clause.

Regards
--
Augusto

2013/4/16 Anthonys Lists antli...@youngman.org.uk

 Not to say this has anything to do with it, but it sounds like this is a
 big file. Does CALL.STATUS just have a few valid values? And when you're
 running this report are you selecting a lot of values for one value of
 CALL.STATUS?

 It shouldn't mess up, but indexing used to be iffy if you indexed hundreds
 of records for a single value of the index. If you're stressing the index
 that could be the problem.

 Do you have a date of appointment field? Could you index on that? If you
 need rapid reports and you could run the report for appointment == today
 with that indexed, would that give you the fast reports you need?

 Cheers,
 Wol


 On 15/04/2013 22:41, david yu wrote:

 We did not have any OS or Universe upgrade.
   here is the list.index


 LIST.INDEX CALL.FILE ALL

 Alternate Key Index Summary for file CALL.FILE
 File... CALL.FILE
 Indices 4 (2 A-type, 1 C-type, 1 D-type, 0 I-type, 0 SQL, 0
 S-type)
 Index Updates.. Enabled, No updates pending
 Index name Type  BuildNulls  In DICT  S/M  Just Unique
 Field num/I-type
 CALL.STATUS  DNot Reqd  YesYes  SL N13
 __**_
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/**mailman/listinfo/u2-usershttp://listserver.u2ug.org/mailman/listinfo/u2-users


 __**_
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/**mailman/listinfo/u2-usershttp://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] is this an INDEX ISSUE?

2013-04-16 Thread Dan Goble
One other thing you may want to check.  See if there are any multivalued or 
subvalues in the item ids.  In unidata this has caused major headaches with 
indices.

HTH
-Dan


Dan Goble | Senior Systems Engineer

Interline Brands, Inc.
804 East Gate Drive Suite 100, Mount Laurel, NJ 08054
Office: 856.533.3110 | Mobile: 609.792.6855
E-mail: dan.go...@interlinebrands.com | Website: www.interlinebrands.com


This e-mail and any files transmitted with it are confidential and intended 
solely for the individual or entity to whom they are addressed.  Please notify 
the sender immediately by e-mail if you have received this e-mail in error and 
delete all copies of this message.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Hona, David
Sent: Tuesday, April 16, 2013 3:59 AM
To: david yu; U2 Users List
Subject: Re: [U2] is this an INDEX ISSUE?

Hello David

1) Is your file you're indexing corrupt or does it have any errors or warnings 
as reported by 'fixtool'? If corrupt, can you repair it (after backing it up:)) 
?
2) What queries using the indices are slow? All or one?
3) What UV release?
4) How and when do you re-index the file?
5) Has the file been recently been resized/restored or otherwise changed?

Cheers,
David

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of david yu
Sent: Saturday, 13 April 2013 9:47 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] is this an INDEX ISSUE?

hello,

We have a file that is updated almost every minute for transportation 
appointment, we index a field in a file to make the reporting much faster but 
recently we noticed when we ran the report not all the transportation appt 
shows up on the report, so customer doesnt get their transportation. We have 
been rebuilding the index every night but problem still exists. Anyone 
encounter this issue? we are on HP-UX b.11.23.

thanks in advance.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

** IMPORTANT MESSAGE *
This e-mail message is intended only for the addressee(s) and contains 
information which may be confidential.
If you are not the intended recipient please advise the sender by return email, 
do not use or disclose the contents, and delete the message and any attachments 
from your system. Unless specifically indicated, this email does not constitute 
formal advice or commitment by the sender or the Commonwealth Bank of Australia 
(ABN 48 123 123 124) or its subsidiaries.
We can be contacted through our web site: commbank.com.au.
If you no longer wish to receive commercial electronic messages from us, please 
reply to this e-mail by typing Unsubscribe in the subject line.
**



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] UniObjects Java Packages

2013-04-16 Thread Bill Brutzman
I am trying to get an example program to work with Eclipse IDE.

When trying to...

import asjava.uniobjects.*;
import asjava.uniclientlibs.*;

I get errors.

I tried several things without any luck.

Help with how to configure the asjava folder in packages would be
appreciated.

--Bill



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] UniObjects + Java Packages

2013-04-16 Thread William Brutzman
I am trying to get example programs to work with Eclipse IDE.

 When trying to...

 import asjava.uniobjects.*;

import asjava.uniclientlibs.*;

I tried it a few different ways... getting errors... indicating that the
IDE cannot find the files or packages.



Help with how to configure the asjava folder would be appreciated.  I am
happy to use NetBeans or almost anything that will work.

--Bill
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniObjects + Java Packages

2013-04-16 Thread Doug Averch
You have to convert the asjava.zip to a jar file.  Then you need to add
asjava.jar to your lib file.  Good luck with your project.

Regards,
Doug
www.u2logic.com
Real tools for Eclipse for U2 Programmers
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniObjects + Java Packages

2013-04-16 Thread Doug Averch
You have to convert the asjava.zip to a jar file.  Then you need to add
asjava.jar to your lib file.  Good luck with your project.

Regards,
Doug
www.u2logic.com
Real tools for Eclipse for U2 Programmers
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniObjects Java Packages

2013-04-16 Thread Daniel McGrath
There should be no need to rename the asjava.zip file. Just follow this 
previous post.

On windows the default install location (You need to have installed UniDK from 
U2 Clients) is c:\u2\unidk\uojsdk\lib

On Thu, Dec 10, 2009 at 3:48 PM, Bob Little Bobl at marketamerica.com wrote:
 You should just be able to add the jar (zip) to your build path within
 Eclipse and clear up the error.

 Project-Properties-Java Build Path-Add External Jars...

 Bob Little
 UniVerse Developer
 Market America
 Greensboro NC

Dan McGrath
Managing Director, U2 Servers Lab
Rocket Software
4600 South Ulster Street  ·  Suite 1100  ·   Denver, CO 80237 ·  USA
T: +1 720 475 8098 · E: dmcgr...@rocketsoftware.com · W: u2.rocketsoftware.com



-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
Sent: Tuesday, April 16, 2013 3:07 PM
To: 'U2 Users List'
Subject: [U2] UniObjects Java Packages

I am trying to get an example program to work with Eclipse IDE.

When trying to...

import asjava.uniobjects.*;
import asjava.uniclientlibs.*;

I get errors.

I tried several things without any luck.

Help with how to configure the asjava folder in packages would be appreciated.

--Bill



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UV Creating a Soap Request

2013-04-16 Thread Peter Cheney
Thanks again David and Symeon for your replies

I thought the SOAPAction was correct but now am not sure.
If I browse to the WSDL schema I see the following spec though.
Would this mean the 'tempuri.org' should be replaced with 'our-dev.domain.com' 
in the WSDL too?

wsdl:operation name=CreateJob1UserPartyRole
   soap:operation 
soapAction=http://tempuri.org/IJobService/CreateJob1UserPartyRole; 
style=document/
   wsdl:input
  soap:body use=literal/
   /wsdl:input
   wsdl:output
  soap:body use=literal/
   /wsdl:output
/wsdl:operation

I went and checked out the www.webservicex.net site (from the e.g. below) and 
looking in there and comparing to what I had and they seem to be pretty much a 
match except for the domain part of the SOAPAction.

So perhaps I need to look elsewhere? There seems to me to be only 3 variables 
at play here: The URL, the SOAPAction, and the XML request. Given that I've 
just finished fiddling with the URL and SOAPAction with no apparent change in 
the log output I'll turn my attention to the XML ...

One other question is it possible to query the WSDL from UV?

Cheers
Peter



-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Hona, David
Sent: Tuesday, 16 April 2013 17:57
To: U2 Users List
Subject: Re: [U2] UV Creating a Soap Request

Hi Peter

Is your SOAPAction correct?? 

The tempURI.org is a Microsoft standard placeholder - usually replaced by a 
proper URI or hostname name, etc.

SOAPAction: http://tempuri.org/IJobService/CreateJob1UserPartyRole

Cheers,
David


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Peter Cheney
Sent: Tuesday, 16 April 2013 4:14 PM
To: U2 Users List (u2-users@listserver.u2ug.org)
Subject: [U2] UV Creating a Soap Request

Hi Everyone,

Recently I had some success getting a secure version of this to work etc. but 
now they want to change it to non-SSL so am trying to get plain old http to 
work.

Using this example as a starting point: 
https://u2devzone.rocketsoftware.com/accelerate/articles/soap-api

I've managed to (I think) translate the example above with our URL and soap 
action etc. but I have a question regarding the UV SOAPCreateRequest and hope 
someone may be able to assist.

The URL I specify in SOAPCreateRequest is 
http://our-dev.domain.com/apps/jobs/Services/Job.svc

However in the log file I get:
04/16/2013 15:05:16 [ 446706 925928 ] Assembled Request:
POST /apps/jobs/Services/Job.svc HTTP/1.1
Date: Tue, 16 Apr 2013 05:05:16 GMT
Host: our-dev.domain.com
SOAPAction: http://tempuri.org/IJobService/CreateJob1UserPartyRole
User-Agent: IBM UniVerse 11.x
Content-Type: text/xml; charset=utf-8
Content-Length: 1670

The POST seems to be missing the first part of the URL and with the response 
being a 400 bad request I'm wondering if there's anything I can do to force 
the complete URL?
In particular is there a SOAP command that I'm missing? Briefly I do the 
following in this order:
Ret = setHTTPDefault( VERSION , 1.1 ) Ret = SOAPSetDefault( VERSION , 
1.2 ) Ret = SOAPCreateRequest( URL , SoapAction , SoapReq ) Ret = 
SOAPSetRequestContent( SoapReq , PAYLOAD , 1 ) Ret = SOAPSubmitRequest( 
SoapReq, Timeout, RespHeaders, RespData, SoapStatus )

The return codes from above are:
setHTTPDefault result = 0
SOAPSetDefault result = 0
SOAPCreateRequest result  = 0
SOAPSetRequestContent result  = 0
SOAPSubmitRequest result  = 0

The SoapStatus from SOAPSubmitRequest above is:
Response status   : 400▒Bad Request

The RespHeaders returned from SOAPSubmitRequest above is:
Response headers  : 
Cache-Control▒private▒Server▒Microsoft-IIS/7.5▒X-Powered-By▒4.0.30319▒X-Powered-By▒ASP.NET▒Date▒Tue,
 16 Apr 2013 05:46:06 GMT▒Content-Length▒0

To me the soap action seems good and the xml in the payload looks ok too so it 
has to be something in the delivery. We're running UV 10.3.4 on AIX 5.3.

Reckon I must be missing something above so looking at the basic ref manual but 
it does not indicate if any of the soap commands therein and the above have 
other dependencies/pre-requisites and in what order they should occur. I guess 
a prior soap knowledge is expected but I'm just starting to get into this so if 
anyone can assist that'd be really helpful thanks.

Cheers
Peter


 ---
Note: 
This email (inc all attachments) is for the use of the intended recipient(s) 
only.
Privileged or confidential information may be contained in this communication. 
If you have received this email in error, please notify the sender immediately 
and then delete all copies of this message from your computer network. If you 
are not the intended recipient, you must not keep, use, disclose, copy or 
distribute this email without the author's prior permission. If you are the 
intended recipient and you do not wish to 

Re: [U2] UniObjects Java Packages

2013-04-16 Thread William Brutzman
Victory... Bob Little's thing worked

Thanks to Dan and Doug.  Some tweaked PickWiki code follows from Wm Terry
and Wendy Smoak.

--Bill

package whome;

import asjava.uniobjects.*;
import asjava.uniclientlibs.*;

public class YesYou3 {
   public static void main(String args[]) {

  UniFile thisFile;
  UniString uString;

  try {
 UniSession uSession = new UniSession();

 uSession.setHostName(192.168.0.104);
 uSession.setUserName(brutzy);
 uSession.setPassword(NoNoNo);
 uSession.setAccountPath(/u2/SANDBOX);
 uSession.connect();

 thisFile = uSession.open(CM);

 String key = 6502;
  uString = thisFile.read(key);
 UniDynArray  uDynArray = new UniDynArray(uString);
 System.out.println(Customer Name =  + uDynArray.extract(1) +
\n);

 String   fieldName =
CITY.FIELD;
 UniString   fieldContents = thisFile.readNamedField(key,
fieldName);
 System.out.println(fieldName + :  + fieldContents);

 thisFile.close();

 if (uSession.isActive())
 {
uSession.disconnect();
 }

  } catch (UniSessionException e) {
 System.out.println(Error:  + e);
  }
  catch (UniFileException e) {
 System.out.println(File Error:  + e);
  }
   }

}



On Tue, Apr 16, 2013 at 5:58 PM, Daniel McGrath dmcgr...@rocketsoftware.com
 wrote:

 There should be no need to rename the asjava.zip file. Just follow this
 previous post.

 On windows the default install location (You need to have installed UniDK
 from U2 Clients) is c:\u2\unidk\uojsdk\lib

 On Thu, Dec 10, 2009 at 3:48 PM, Bob Little Bobl at marketamerica.com
 wrote:
  You should just be able to add the jar (zip) to your build path within
  Eclipse and clear up the error.
 
  Project-Properties-Java Build Path-Add External Jars...
 
  Bob Little
  UniVerse Developer
  Market America
  Greensboro NC

 Dan McGrath
 Managing Director, U2 Servers Lab
 Rocket Software
 4600 South Ulster Street  ·  Suite 1100  ·   Denver, CO 80237 ·  USA
 T: +1 720 475 8098 · E: dmcgr...@rocketsoftware.com · W:
 u2.rocketsoftware.com



 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:
 u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
 Sent: Tuesday, April 16, 2013 3:07 PM
 To: 'U2 Users List'
 Subject: [U2] UniObjects Java Packages

 I am trying to get an example program to work with Eclipse IDE.

 When trying to...

 import asjava.uniobjects.*;
 import asjava.uniclientlibs.*;

 I get errors.

 I tried several things without any luck.

 Help with how to configure the asjava folder in packages would be
 appreciated.

 --Bill



 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UV Creating a Soap Request

2013-04-16 Thread Hona, David
Oops, yes - sorry for my misleading reply regarding the URIs. Tempui.org is a 
valid placeholder and you don't need to replace it.

Have you tried now SOAPAction and what error do you get then?


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Peter Cheney
Sent: Wednesday, 17 April 2013 9:24 AM
To: U2 Users List
Subject: Re: [U2] UV Creating a Soap Request

Thanks again David and Symeon for your replies

I thought the SOAPAction was correct but now am not sure.
If I browse to the WSDL schema I see the following spec though.
Would this mean the 'tempuri.org' should be replaced with 'our-dev.domain.com' 
in the WSDL too?

wsdl:operation name=CreateJob1UserPartyRole
   soap:operation 
soapAction=http://tempuri.org/IJobService/CreateJob1UserPartyRole; 
style=document/
   wsdl:input
  soap:body use=literal/
   /wsdl:input
   wsdl:output
  soap:body use=literal/
   /wsdl:output
/wsdl:operation

I went and checked out the www.webservicex.net site (from the e.g. below) and 
looking in there and comparing to what I had and they seem to be pretty much a 
match except for the domain part of the SOAPAction.

So perhaps I need to look elsewhere? There seems to me to be only 3 variables 
at play here: The URL, the SOAPAction, and the XML request. Given that I've 
just finished fiddling with the URL and SOAPAction with no apparent change in 
the log output I'll turn my attention to the XML ...

One other question is it possible to query the WSDL from UV?

Cheers
Peter


** IMPORTANT MESSAGE *   
This e-mail message is intended only for the addressee(s) and contains 
information which may be
confidential. 
If you are not the intended recipient please advise the sender by return email, 
do not use or
disclose the contents, and delete the message and any attachments from your 
system. Unless
specifically indicated, this email does not constitute formal advice or 
commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. 
We can be contacted through our web site: commbank.com.au. 
If you no longer wish to receive commercial electronic messages from us, please 
reply to this
e-mail by typing Unsubscribe in the subject line. 
**



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users