|
- the posted link is broken.
- The linker errors clearly states that default constructor and destructor of the
soap class are missing - Your post wins the prize for the 'longest sequence of unuseful characters'.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Your post wins the prize for the 'longest sequence of unuseful characters'.
And WINNER is .....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
to get the isapi extension to compile add
#ifndef WITH_LEAN
soap::soap()
{
}
#endif
#endif
#ifdef __cplusplus
#ifndef WITH_LEAN
soap::~soap()
{
}
#endif
#endif
to the top of the file ISAPI_SERVER.cpp
make sure that the VS include dir is set to the main gsoap directory (the one with stdSoap2.cpp in it)
In order to get the calc demo to work, generate the rpc code for the calc demo
soapcpp2 calc.h
this is sufficient to get everything to compile and run, however the calc dll will not work as expected.
you must now set the compiler type for each of the files ending in a .c extension in the calc and calcclnt solution from C compiler to C++ compiler. (this is found in the property sheet for each of these files as displayed by VC)
The client and server programs for the mod_gsoap.dll demo (calc) should now work, providing your files are in the correct directories and IIS is set correctly
This worked for me under VC2005 and should work under VC6...
|
|
|
|
|
Hello all,
I have been running the DIME sample associated with gsoap 2.7. It seems to be OK
except when running with the .xml files and the dimeserver.
I do: ./dimeserver < TEST1.xml
The XML file looks like:
_____________________________________________
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="urn:dime">
<SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<ns:putData>
<data SOAP-ENC:arrayType="ns:Data[1]">
<item>"image.jpg"</item>
</data>
</ns:putData>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
______________________________________________
BUT
I get the following as output - as you can see, it seems that the return code is
successful but there is imeediately a soap_fault afterwards.
Why is this the case?
________________________________________________
scar samples/dime> ./dimeserver < TEST1.xml
Saving file /home/soapdev/TEMPFILES/IMAGES/dataSTyj3k
Status: 200 OK
Server: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
229
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="urn:dime"><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><ns:putDataRe\
sponse><names xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="xsd:string[1]"><item>dataSTyj3k</item></names></ns:putDataRe\
sponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
0
Status: 500 Internal Server Error
Server: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: close
23A
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns="urn:dime"><SOAP-ENV:Body><SOAP-ENV:Fault
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><faultcode>SO\
AP-ENV:Client</faultcode><faultstring>End of file or no input: Operation
interrupted or timed
out</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
0
________________________________________________
TIA
|
|
|
|
|
Hi i'm really new to programming and I have this payroll report program to create please can someone tell me why it does not work it just keeps giving me 0.00 as a end result. I have pasted my source code below thank you to anyone who can help me and sorry if I seem dumb and unable to resolve the issue.
#include <stdio.h>
const float premium=1.5;
float payrate,overtime,pay,hours,total;
int main()
{
printf("\n\n\t\tPayroll report ");
printf("\n\n\t\tEnter standard rate of pay ");
scanf("%f",&payrate);
printf("\n\n\t\tEnter number of hours in a week ");
scanf("%f",&hours);
printf("\n\n\t\tEnter the number of over time hours worked ");
scanf("%f",&overtime);
getchar();
pay=payrate*(hours+premium*overtime);
total=pay;
printf("\n\n\t\tThe total cost%31.2f ");
getchar();
}
|
|
|
|
|
Ev3nflow wrote:
printf("\n\n\t\tThe total cost%31.2f ");
Study this statement very carefully.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi thanks for helping me so I take it I have gone wrong by using this statement printf("\n\n\t\tThe total cost%31.2f "); in my code but i'm not sure how to make it right
|
|
|
|
|
well, what are you wanting to print with the printf ? are you certain you are not missing a parameter there ?
This signature was proudly tested on animals.
|
|
|
|
|
Ev3nflow wrote: ...I take it I have gone wrong by using this statement printf("\n\n\t\tThe total cost%31.2f "); in my code...
Not by using it, but by using it incorrectly. If you were a compiler and I handed you that same statement, what would you print?
Ev3nflow wrote: ...but i'm not sure how to make it right
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
printf("\n\n\t\tThe total cost%31.2f ",pay);
|
|
|
|
|
Hi thanks for your help. I have fixed it now, I have pasted my working code below so you can see what I have changed. I think your way would of worked as well.
#include <stdio.h>
float premium=1.5,standpayrate,overtime,pay,hours,;
int main()
{
printf("\n\n\t\tPayroll report ");
printf("\n\n\t\tEnter standard rate of pay ");
scanf("%f",&standpayrate);
printf("\n\n\t\tEnter number of hours in a week ");
scanf("%f",&hours);
printf("\n\n\t\tEnter the number of over time hours worked ");
scanf("%f",&overtime);
getchar();
pay=standpayrate*(hours+premium*overtime);
premium=pay;
printf("\n\n\t\tThe total amount payable %15.2f",premium );
getchar();
}
|
|
|
|
|
Ev3nflow wrote: float premium=1.5,standpayrate,overtime,pay,hours,;
Moving these global variables to be local to the main() function would not change anything, but they are usually not a good idea to use. For larger projects, they could indeed cause you grief.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
From DavidCrow:
#include <stdio.h>
int main()
{
float premium=1.5,standpayrate,overtime,pay,hours,;
printf("\n\n\t\tPayroll report ");
|
|
|
|
|
Hi
I tried to use "GetGlyphOutline" to get a Unicode true type outline (curve) data. But the plotted char was rotated by 90 degree. What is wrong ?
Best regards,
modified on Tuesday, October 20, 2009 3:31 PM
|
|
|
|
|
Hi transoft,
Is the font a vertical font? Is the first letter of the font name '@'?
Best Wishes,
-David Delaune
|
|
|
|
|
Thank you very much for reply. I think it is a vertical font. I tried other font, it shows OK.
Best,
|
|
|
|
|
Hi all, I've got some serious Googling ahead of me but I was hoping some of the experts in here could point me in the right directions.
I have a fairly exciting (but daunting) opportunity to develop software for the identification of bird calls. I am daunted because pattern recognition is a field I know little of and have virtually no experience with. I have used SAPI before for a basic TTS implementation but this, I imagine, will be significantly more complicated.
So, I'll be grateful for any advice anyone can dispense. I'll probably be doing the development in C++ so I'd be particularly interested in resources available to C++ programmers. Is SAPI the way to go? I am also specifically interested to know if there are any specific concepts in speech recognition that might be applicable to a solution that is concerned with the recognition of sounds such as bird calls (ie. no grammar to speak of, no sentences, just individual sounds ranging from say 2 seconds to 10 seconds in length).
Eagerly, awaiting your comments and suggestions.
|
|
|
|
|
I did a project to recognize bird sounds in the past.
Speech recognition software can be used for this task, but you need to change ASR front-end
to cope with bird sound vocalizations.
What type of birds do you want to recognize?
Luis
ASR Labs
http://www.asrlabs.com
|
|
|
|
|
Hi Luis,
Thanks for the response. The project hasn't been spec'ed fully yet but I would imagine that the expectation is for the software to recognise bird calls ranging from small Warblers with high pitched chattering to Crows with their harsh squawks and everything in between. In total there will be something in the order of 600 to 700 species that need to be identified. I'm not sure yet over how many phases the project will stretch but, if I complete phase successfully I can probably position myself well to see the project through to the last phase.
Ultimately I think the idea will be that a user can record a bird call in the field, using his PDA for instance, and then have the software immediately identify the bird based on the call, or at least give a short list of most likely candidates.
I'm glad to hear that someone else has done something similar already and that you can confirm that Speech Recognition can be used for this application. I would love to hear more about the project you did.
Regards,
Déwald Swanepoel
|
|
|
|
|
Déwald Swanepoel,
I worked with Amazon sound birds to set up a demo for a client.
Client didn't buy project, but demo worked for 4 types of birds
with a very high accuracy.
PLP was used as a front-end, but it is necessary to change some
parameters to cope with high pitch, etc. It is an experimental
jobs to set these parameters.
Luis
ASR Labs
http://www.asrlabs.com
|
|
|
|
|
Could you explain PLP perhaps please? The only PLP I know of was something like Packet Layer Protocol from way back when I did some work on X.25. Obviously you're referring to something different.
Would you mind if I contact you off list with some specific questions? You seem to have some experience of ASR and specifically bird call recognition and I'm sure you'd be able to answer most of my questions without too much effort. I'll leave you alone then
|
|
|
|
|
Send me an email at:
luis uebel at g m ail d ot com
Please remove spaces, just to reduce spams.
|
|
|
|
|
PLP is a type of speech recognition feature vector.
Please send me your email to contact you.
Luis
|
|
|
|
|
Would you to post your project here?
I am sure there are a lot of interested in Speech recognition.
Thanks,
|
|
|
|
|
Im having problem with the output of this program that i made that supposed to count the numbers of successful a's and b's based on the pattern indicated in my condition.
*********************************************************************
#include<iostream>
using namespace std;
int main()
{
int lookahead;
int q1=0, q2=0, q3=0, q4=0, q5=0, q6=0;
int count_a=0;
int count_b=0;
while((lookahead = getchar())!='.')
{
switch(lookahead)
{
case 'a':{
if(q1==0 && q2==0 && q3==0 && q4==0 && q5==0 && q6==0)
{
q1=0;
q2=1;
q3=0;
q4=0;
q5=0;
q6=0;
}
else if ( q1==0 && q2==1 && q3==0 && q4==0 && q5==0 && q6==0 )
{
q1=0;
q2=1;
q3=1;
q4=0;
q5=0;
q6=0;
}
else if ( q1==0 && q2==1 && q3==1 && q4==0 && q5==0 && q6==0)
{
q1=0;
q2=0;
q3=0;
q4=0;
q5=0;
q6=0;
count_a++;
}
else if ( q1==0 && q2==0 && q3==0 && q4==1 && q5==0 && q6==0)
{
q1=0;
q2=1;
q3=0;
q4=0;
q5=0;
q6=0;
}
else if (q1==0 && q2==0 && q3==0 && q4==1 && q5==1 && q6==0)
{
q1=0;
q2=1;
q3=0;
q4=0;
q5=0;
q6=0;
}
}
break;
case 'b':{
if(q1==0 && q2==0 && q3==0 && q4==0 && q5==0 && q6==0)
{
q1=0;
q2=0;
q3=0;
q4=1;
q5=0;
q6=0;
}
else if ( q1==0 && q2==0 && q3==0 && q4==1 && q5==0 && q6==0 )
{
q1=0;
q2=0;
q3=0;
q4=1;
q5=1;
q6=0;
}
else if ( q1==0 && q2==0 && q3==0 && q4==1 && q5==1 && q6==0)
{
q1=0;
q2=0;
q3=0;
q4=0;
q5=0;
q6=0;
count_b++;
}
else if ( q1==0 && q2==1 && q3==0 && q4==0 && q5==0 && q6==0)
{
q1=0;
q2=0;
q3=0;
q4=1;
q5=0;
q6=0;
}
else if (q1==0 && q2==1 && q3==1 && q4==0 && q5==0 && q6==0)
{
q1=0;
q2=0;
q3=0;
q4=1;
q5=0;
q6=0;
}
}
break;
default:{
q1=0;
q2=0;
q3=0;
q4=0;
q5=0;
q6=0;
}
}
cout<<"\n count_a :"<<count_a;
cout<<"\n count_b :"<<count_b;
}
return 0;
}
*****************************************************************
when i didnt enter any letter the output is:
count_a: 0
count_b: 0
when the letter increase the number of count display multiplies too and it shouldnt'..
like this; input words "aaa"
count_a: 0
count_b: 0
count_a: 0
count_b: 0
count_a: 1
count_b: 0
count_a: 1
count_b: 0
Where do you think is the problem on my codes?
modified on Tuesday, October 20, 2009 2:00 PM
|
|
|
|